/**
 * Custom Fields Consolidated CSS
 * This file contains all CSS from the custom fields PHP files
 */

/* ==========================================================================
   LICENSES SECTION STYLES
   From: custom-fields-licenses.php
   ========================================================================== */

/* Licenses Section Styles */
.tb-licenses-wrapper {
    margin-bottom: 20px;
}

.tb-licenses-list {
    margin-top: 20px;
}

.tb-license-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
    transition: all 0.3s ease;
    animation: fadeInUp 0.4s ease-out;
}

.tb-license-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.tb-license-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.tb-license-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
}

.tb-license-issuer {
    color: #666;
    font-size: 14px;
}

.tb-license-details {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    font-size: 13px;
    color: #777;
}

.tb-license-detail {
    display: flex;
    align-items: center;
    gap: 5px;
}

.tb-license-detail i {
    font-size: 14px;
    color: #999;
}

.tb-license-actions {
    display: flex;
    gap: 10px;
}

.tb-no-licenses {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    background: #f8f9fa;
    border-radius: 8px;
}

/* License Modal Styles */
#tb_license_modal .modal-dialog {
    max-width: 750px;
    margin: 1.75rem auto;
}

#tb_license_modal .modal-content {
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

#tb_license_modal .tb-popuptitle {
    padding: 25px 30px 20px;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}

#tb_license_modal .tb-popuptitle h4 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
}

#tb_license_modal .tb-popuptitle p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

#tb_license_modal .tb-popuptitle .close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: #333;
    opacity: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: #f0f0f0;
    border: 1px solid #ddd;
    text-decoration: none;
}

#tb_license_modal .tb-popuptitle .close:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

#tb_license_modal .tb-popuptitle .close::after {
    content: '×';
    font-size: 28px;
    line-height: 1;
    color: #333;
}

#tb_license_modal .modal-body {
    padding: 30px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

#tb_license_modal .form-group {
    margin-bottom: 20px;
}

#tb_license_modal .form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

#tb_license_modal .form-group label .required {
    color: #dc3545;
    font-weight: normal;
}

#tb_license_modal .form-group label .info-icon {
    font-size: 14px;
    color: #999;
    cursor: help;
}

#tb_license_modal .form-control {
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 14px;
}

#tb_license_modal .form-row {
    display: flex;
    gap: 20px;
}

#tb_license_modal .form-row .form-group {
    flex: 1;
}

#tb_license_modal .checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

#tb_license_modal .checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

#tb_license_modal .checkbox-group label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
    user-select: none;
}

#tb_license_modal .help-text {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

#tb_license_modal .tb-popupbtnarea {
    padding: 20px 30px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

#tb_license_modal .tb-btn-secondary {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#tb_license_modal .tb-btn-secondary:hover {
    background: #e0e0e0;
}

.tb-license-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.tb-license-status.active {
    background: #e8f5e9;
    color: #2e7d32;
}

.tb-license-status.expired {
    background: #ffebee;
    color: #c62828;
}

/* Toggle Switch Styles */
.toggle-section {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.toggle-label {
    flex: 1;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    user-select: none;
}

.toggle-switch {
    position: relative;
    width: 48px;
    height: 24px;
    background: #e0e0e0;
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.toggle-switch.active {
    background: #4CAF50;
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch.active .toggle-slider {
    transform: translateX(24px);
}

.toggle-switch input {
    display: none;
}

/* ==========================================================================
   PORTFOLIO SECTION STYLES
   From: custom-fields-portfolio.php
   ========================================================================== */

/* Portfolio Styles */
.tb-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tb-portfolio-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: fadeInUp 0.4s ease-out;
}

.tb-portfolio-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.tb-portfolio-thumb {
    position: relative;
    padding-bottom: 75%;
    background: #f5f5f5;
    overflow: hidden;
}

.tb-portfolio-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tb-portfolio-item:hover .tb-portfolio-thumb img {
    transform: scale(1.05);
}

.tb-portfolio-image-count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

.tb-portfolio-content {
    padding: 20px;
}

.tb-portfolio-content h6 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.tb-portfolio-content .role {
    margin: 0 0 8px;
    color: #666;
    font-size: 14px;
}

.tb-portfolio-content .meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #999;
}

.tb-portfolio-actions {
    padding: 15px 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 10px;
}

/* Full Screen Modal */
#tb_portfolio_modal .modal-dialog {
    max-width: 100%;
    width: 100%;
    height: 100vh;
    margin: 0;
}

#tb_portfolio_modal .modal-content {
    height: 100%;
    border: 0;
    border-radius: 0;
}

#tb_portfolio_modal .modal-body {
    height: calc(100vh - 140px);
    overflow-y: auto;
    padding: 0;
}

#tb_portfolio_modal .tb-popuptitle {
    padding: 20px 30px 15px;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}

#tb_portfolio_modal .tb-popuptitle h2 {
    margin: 0 0 5px 0;
    font-size: 24px;
}

#tb_portfolio_modal .tb-popuptitle .subtitle {
    font-size: 14px;
    color: #666;
    font-weight: normal;
    margin: 0;
}

#tb_portfolio_modal .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 24px;
    color: #333 !important;
    opacity: 1 !important;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: #f0f0f0 !important;
    z-index: 9999 !important;
    text-decoration: none;
    border: 1px solid #ddd;
}

#tb_portfolio_modal .close:hover {
    background: #e0e0e0 !important;
    transform: rotate(90deg);
    color: #000 !important;
}

#tb_portfolio_modal .close i {
    color: #333 !important;
    font-style: normal;
}

/* Fallback if icon doesn't load */
#tb_portfolio_modal .close::after {
    content: '×';
    font-size: 28px;
    line-height: 1;
    color: #333;
    position: absolute;
}

#tb_portfolio_modal .tb-popupbtnarea {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 15px 30px;
    z-index: 1050;
    display: flex;
    justify-content: space-between;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

#tb_portfolio_modal .tb-popupbtnarea__left {
    display: flex;
    align-items: center;
}

#tb_portfolio_modal .tb-popupbtnarea__right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tb-btn-secondary {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.tb-btn-secondary:hover {
    background: #e0e0e0;
    color: #000;
}

.tb-btn-primary {
    background: #333;
    color: #fff;
}

.tb-btn-primary:hover {
    background: #000;
}

/* Progress Indicator */
.portfolio-progress {
    display: flex;
    justify-content: center;
    padding: 20px 30px 10px;
    gap: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #999;
    font-size: 14px;
    transition: all 0.3s ease;
}

.progress-step.completed {
    color: #4CAF50;
}

.progress-step.active {
    color: #333;
    font-weight: 600;
}

.progress-step .step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    position: relative;
}

.progress-step.completed .step-number::before {
    content: '✓';
    position: absolute;
    font-size: 16px;
}

.progress-step.completed .step-number span {
    display: none;
}

/* Tabs Styling */
.portfolio-tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    background: #f8f9fa;
    padding: 0 30px;
}

.portfolio-tab {
    padding: 15px 25px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.portfolio-tab:hover {
    color: #333;
}

.portfolio-tab.active {
    color: #333;
}

.portfolio-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #333;
    animation: slideIn 0.3s ease;
}

.portfolio-tab-content {
    display: none;
    padding: 30px;
    animation: fadeIn 0.3s ease;
}

.portfolio-tab-content.active {
    display: block;
}

/* Two column layout for Project Details */
.project-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .project-details-grid {
        grid-template-columns: 1fr;
    }
}

.project-details-main {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.project-details-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Two column layout for Media tab */
.media-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .media-content-grid {
        grid-template-columns: 1fr;
    }
}

.media-left-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.media-right-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Required label styling */
.required-label {
    color: #dc3545;
    font-size: 12px;
    font-weight: normal;
    margin-left: 5px;
}

/* Reduce vertical spacing */
.form-group {
    margin-bottom: 15px;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Media Section Styling */
.media-section-card {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.media-section-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.media-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    font-weight: 600;
    color: #333;
}

.media-section-header i {
    font-size: 18px;
    color: #666;
}

/* Portfolio Cover Image Section */
.featured-image-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.featured-image-preview {
    width: 100%;
    height: 200px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.featured-image-preview:hover {
    border-color: #999;
    transform: scale(1.02);
}

.featured-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-image-preview .placeholder {
    text-align: center;
    color: #999;
}

.featured-image-preview .placeholder i {
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
}

.featured-image-preview .placeholder div {
    font-size: 14px;
}

.featured-image-info .hint {
    font-size: 13px;
    color: #666;
    margin: 0;
}

/* Gallery Upload Styles */
.gallery-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.gallery-dots {
    display: flex;
    gap: 4px;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e0e0e0;
    transition: all 0.3s ease;
}

.gallery-dot.filled {
    background: #4CAF50;
    transform: scale(1.2);
}

.gallery-counter {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.image-upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    background: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 15px;
}

.image-upload-area:hover {
    border-color: #999;
    background: #fafafa;
}

.image-upload-area.drag-over {
    border-color: #4CAF50;
    background: #e8f5e9;
    transform: scale(0.98);
}

.upload-icon {
    font-size: 40px;
    color: #999;
    margin-bottom: 10px;
}

.upload-text {
    color: #333;
    margin-bottom: 5px;
    font-weight: 500;
}

.upload-hint {
    font-size: 12px;
    color: #666;
}

.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.image-preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    aspect-ratio: 1;
    max-width: 160px;
    animation: zoomIn 0.3s ease;
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-preview-item:hover img {
    transform: scale(1.1);
}

.featured-image-preview .placeholder button {
    background: #f0f0f0;
    border: 1px solid #ddd;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.featured-image-preview .placeholder button:hover {
    background: #e0e0e0;
}

/* PDF Preview Styling */
.image-preview-item.pdf-file {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
}

.image-preview-item .file-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px;
    font-size: 11px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.image-preview-item .remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 255, 255, 0.9);
    color: #dc3545;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    opacity: 0;
    transition: all 0.3s ease;
}

.image-preview-item:hover .remove-image {
    opacity: 1;
}

.image-preview-item .remove-image:hover {
    background: #dc3545;
    color: white;
    transform: scale(1.1);
}

.tb-no-portfolio {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.tb-no-portfolio p {
    margin: 0;
    font-size: 16px;
}

/* Hide file inputs */
#featured_image_input,
#portfolio_gallery_input {
    display: none;
}

/* Video URL Section */
.video-url-list {
    margin-bottom: 10px;
}

.video-url-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    animation: slideDown 0.3s ease;
}

.video-url-item input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.video-url-item .remove-video {
    background: #dc3545;
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.video-url-item .remove-video:hover {
    background: #c82333;
}

.add-video-url {
    background: #f0f0f0;
    border: 1px dashed #999;
    color: #666;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-block;
    font-size: 13px;
    transition: all 0.3s ease;
}

.add-video-url:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   PROJECT LISTING MODIFICATIONS STYLES
   From: project-listing-modifications.php
   ========================================================================== */

.tk-project-wrapper.tk-processed {
    opacity: 1;
}


.tk-view-btngroup {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px;
    background: #f7f7f7;
    border-radius: 8px;
}

.tk-view-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: #6b7280;
    font-weight: 500;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}





.tk-view-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #3b82f6;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 10px;
}

.tk-pro-badge-sm {
    background: #111827;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Loading state styles */
.tk-project-wrapper.tk-loading {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Match percentage badge */
.tk-match-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    z-index: 5;
}

.tk-match-percentage {
    font-size: 16px;
}

@media (max-width: 768px) {
    .tk-view-btngroup {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        scroll-behavior: smooth;
    }
    
    .tk-view-btn {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .tk-match-badge {
        font-size: 12px;
        padding: 4px 8px;
        top: 10px;
        right: 10px;
    }
    
    .tk-match-percentage {
        font-size: 14px;
    }
}

/* ==========================================================================
   SELLER LISTING MODIFICATIONS STYLES
   From: seller-listing-modifications.php
   ========================================================================== */

/* Side Panel Overlay */
.tk-match-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tk-match-panel-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Side Panel */
.tk-match-panel {
    position: fixed;
    top: 0;
    right: -1050px;
    width: 100%;
    max-width: 1050px;
    height: 100vh;
    background: #FFFFFF;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.tk-match-panel.active {
    right: 0;
}

/* Panel Header */
.tk-panel-header {
    padding: 24px;
    border-bottom: 1px solid #E5E7EB;
    background: #FFFFFF;
}

.tk-panel-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.tk-seller-info {
    display: flex;
    gap: 12px;
    flex: 1;
}

.tk-seller-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.tk-seller-details h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #000000;
}

.tk-seller-tagline {
    margin: 4px 0 0;
    font-size: 14px;
    color: #6B7280;
}

.tk-panel-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.tk-panel-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 50%;
    color: #6B7280;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.tk-panel-action-btn:hover {
    background: #F3F4F6;
    border-color: #D1D5DB;
    color: #000000;
}

.tk-panel-action-btn.saved {
    color: #EF4444;
    background: #FEE2E2;
    border-color: #FECACA;
}

.tk-panel-action-btn.tk-invite-to-projects {
    width: auto;
    padding: 0 16px;
    border-radius: 6px;
    flex-direction: row;
}

.tk-open-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    color: #000000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tk-open-profile-btn:hover {
    background: #F3F4F6;
    border-color: #D1D5DB;
}

.tk-panel-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #6B7280;
    transition: color 0.2s ease;
}

.tk-panel-close:hover {
    color: #000000;
}

/* Panel Body */
.tk-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: #F9FAFB;
}

/* Two Column Layout */
.tk-panel-content-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
}

/* Match Overview - Left Column */
.tk-match-overview {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 0;
}

.tk-match-overview h4 {
    margin: 0 0 20px;
    font-size: 16px;
    font-weight: 600;
    color: #000000;
}

.tk-match-score-display {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid #E5E7EB;
    margin-bottom: 20px;
}

.tk-match-score-value {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}

.tk-match-score-value.excellent {
    color: #059669;
}

.tk-match-score-value.good {
    color: #10B981;
}

.tk-match-score-value.possible {
    color: #F59E0B;
}

.tk-match-score-value.poor {
    color: #6B7280;
}

.tk-match-score-label {
    font-size: 14px;
    color: #6B7280;
    margin-top: 4px;
}

.tk-match-breakdown {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tk-match-factor {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tk-match-factor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tk-match-factor-label {
    font-size: 14px;
    color: #000000;
}

.tk-match-factor-score {
    font-size: 14px;
    font-weight: 600;
    color: #6B7280;
}

.tk-match-progress {
    width: 100%;
    height: 6px;
    background: #E5E7EB;
    border-radius: 3px;
    overflow: hidden;
}

.tk-match-progress-bar {
    height: 100%;
    background: #10B981;
    transition: width 0.3s ease;
}

/* Trust Indicators */
.tk-trust-indicators {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #E5E7EB;
}

.tk-trust-indicators h5 {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
}

.tk-trust-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tk-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6B7280;
}

.tk-trust-item.active {
    color: #10B981;
}

.tk-trust-item svg {
    width: 16px;
    height: 16px;
}

/* Project Details - Right Column */
.tk-project-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tk-project-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 20px;
}

.tk-project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.tk-project-title {
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    text-decoration: none;
    line-height: 1.4;
    flex: 1;
    padding-right: 12px;
}

.tk-project-title:hover {
    color: #6B7280;
}

.tk-project-match-badge {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.tk-project-match-badge.excellent {
    background: #D1FAE5;
    border-color: #059669;
    color: #059669;
}

.tk-project-match-badge.good {
    background: #DBEAFE;
    border-color: #2563EB;
    color: #2563EB;
}

.tk-project-match-badge.possible {
    background: #FEF3C7;
    border-color: #F59E0B;
    color: #92400E;
}

.tk-project-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #6B7280;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #E5E7EB;
}

/* Match Sections */
.tk-match-section {
    margin-bottom: 20px;
}

.tk-match-section:last-child {
    margin-bottom: 0;
}

.tk-match-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.tk-match-section-icon {
    width: 20px;
    height: 20px;
    color: #9CA3AF;
}

.tk-match-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #000000;
}

.tk-match-section-score {
    margin-left: auto;
    font-size: 13px;
    color: #6B7280;
}

.tk-match-section-content {
    margin-left: 28px;
}

/* Skills */
.tk-skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tk-skill-tag {
    background: #F3F4F6;
    color: #6B7280;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.tk-skill-tag.matched {
    background: #D1FAE5;
    color: #065F46;
}

/* Status Indicators */
.tk-status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #000000;
}

.tk-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #E5E7EB;
}

.tk-status-dot.success {
    background: #10B981;
}

.tk-status-dot.warning {
    background: #F59E0B;
}

.tk-status-dot.error {
    background: #EF4444;
}

/* Summary Box */
.tk-match-summary-box {
    background: #F0F9FF;
    border: 1px solid #BAE6FD;
    border-radius: 6px;
    padding: 16px;
    margin-top: 16px;
}

.tk-match-summary-box h6 {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: #0369A1;
}

.tk-match-summary-box p {
    margin: 0;
    font-size: 14px;
    color: #0C4A6E;
    line-height: 1.5;
}

/* Questions Section */
.tk-suggested-questions {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 20px;
    margin-top: 16px;
}

.tk-suggested-questions h5 {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
}

.tk-questions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tk-question-item {
    padding-left: 20px;
    position: relative;
    font-size: 14px;
    color: #6B7280;
    line-height: 1.5;
}

.tk-question-item::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: #D1D5DB;
}

/* Match Summary Link */
.tk-seller-match-summary {
    margin-top: 12px;
    display: inline-block;
}

.tk-seller-match-summary a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    color: #000000;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tk-seller-match-summary a:hover {
    background: #F3F4F6;
    border-color: #D1D5DB;
}

.tk-match-icon {
    width: 16px;
    height: 16px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .tk-match-panel {
        max-width: 100%;
        right: -100%;
    }
    
    .tk-panel-content-grid {
        grid-template-columns: 1fr;
    }
    
    .tk-match-overview {
        position: static;
    }
    
    .tk-panel-body {
        padding: 16px;
    }
}

/* Scrollbar Styling */
.tk-panel-body::-webkit-scrollbar {
    width: 6px;
}

.tk-panel-body::-webkit-scrollbar-track {
    background: #F3F4F6;
}

.tk-panel-body::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 3px;
}

.tk-panel-body::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

/* Additional Skills Styling */
.tk-additional-skills {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #E5E7EB;
}

.tk-additional-skills-label {
    font-size: 12px;
    color: #6B7280;
    margin-bottom: 6px;
    font-weight: 500;
}

.tk-skill-tag.additional {
    background: #F0F9FF;
    color: #0369A1;
    border: 1px solid #BAE6FD;
}

/* Dynamic color classes added by JavaScript */
.tk-seller-match-summary a.excellent { 
    color: #059669; 
    border-color: #10B981; 
}

.tk-seller-match-summary a.excellent:hover { 
    background: #D1FAE5; 
    border-color: #059669; 
}

.tk-seller-match-summary a.good { 
    color: #2563EB; 
    border-color: #3B82F6; 
}

.tk-seller-match-summary a.good:hover { 
    background: #DBEAFE; 
    border-color: #2563EB; 
}

.tk-seller-match-summary a.possible { 
    color: #92400E; 
    border-color: #F59E0B; 
}

.tk-seller-match-summary a.possible:hover { 
    background: #FEF3C7; 
    border-color: #F59E0B; 
}

.tk-seller-match-summary a.poor { 
    color: #6B7280; 
    border-color: #9CA3AF; 
}

.tk-seller-match-summary a.poor:hover { 
    background: #F3F4F6; 
    border-color: #6B7280; 
}