/* Talent Bank Module Styles */
.talent-bank-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.talent-bank-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.talent-bank-breadcrumb {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.talent-bank-actions {
    display: flex;
    gap: 12px;
}

/* Override primary button for Talent Bank specific color */
/* Override primary button for Talent Bank specific color */
.btn-primary-talent {
    background-color: #223f7c;
    /* Bonsenhor Blue */
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary-talent:hover {
    background-color: #1a3160;
}

/* Stats Card */
.stats-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.stats-header {
    margin-bottom: 20px;
}

.stats-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.stats-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

.search-container {
    display: flex;
    gap: 16px;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: var(--primary-color);
}

.filter-button {
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: white;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.filter-panel {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.filter-group {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

/* Info Banner */
.info-banner {
    background: #FFFBEB;
    border-left: 4px solid #F59E0B;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-text {
    color: #92400E;
    font-size: 14px;
    font-weight: 500;
}

.btn-improve-plan {
    background: #FBBF24;
    color: #78350F;
    border: none;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Table */
.talent-table-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.talent-table {
    width: 100%;
    border-collapse: collapse;
}

.talent-table th {
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
}

.talent-table td {
    padding: 16px;
    border-bottom: 1px solid #F3F4F6;
    vertical-align: middle;
}

.talent-table tr:hover {
    background-color: #F9FAFB;
}

.candidate-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.candidate-avatar {
    width: 32px;
    height: 32px;
    background: #F3F4F6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    overflow: hidden;
}

.candidate-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.analytics-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    margin-right: 4px;
    color: white;
}

.analytics-C {
    background-color: #EF4444;
}

.analytics-O {
    background-color: #F59E0B;
}

.analytics-A {
    background-color: #10B981;
}

.analytics-E {
    background-color: #3B82F6;
}

.analytics-P {
    background-color: #8B5CF6;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
}

.status-viewed {
    background: #ECFDF5;
    color: #059669;
}

.status-rejected {
    background: #FEF2F2;
    color: #DC2626;
}

.status-not-viewed {
    background: #EFF6FF;
    color: #3B82F6;
}

.app-badge-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
}

.app-badge {
    background: #ECFDF5;
    color: #047857;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.app-count {
    background: #F3F4F6;
    color: #6B7280;
    padding: 2px 6px;
    border-radius: 99px;
    font-size: 10px;
    font-weight: 600;
}

.favorite-star {
    font-size: 18px;
    cursor: pointer;
}

.favorite-active {
    color: #F59E0B;
}

.favorite-inactive {
    color: #D1D5DB;
}

.actions-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 18px;
}

/* Pagination */
.pagination-container {
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
}

.pagination-info {
    font-size: 14px;
    color: var(--text-secondary);
}

.pagination-controls {
    display: flex;
    gap: 8px;
}

.page-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

/* Modal */
.modal-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
}


.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* Extended Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.2s ease-out;
}

.modal {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease-out;
}

.modal-lg {
    max-width: 800px;
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: var(--bg-surface);
    position: sticky;
    bottom: 0;
}

/* Form Styles */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-primary);
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(34, 63, 124, 0.1);
}

.notes-textarea {
    min-height: 100px;
    resize: vertical;
}

.mb-24 {
    margin-bottom: 24px;
}

/* Dropdown */
.options-dropdown {
    position: absolute;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: 160px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.dropdown-item {
    text-align: left;
    padding: 10px 16px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    transition: background 0.1s;
}

.dropdown-item:hover {
    background-color: var(--bg-secondary);
}

.dropdown-item.text-red {
    color: #DC2626;
}

.dropdown-item.border-top {
    border-top: 1px solid var(--border-color);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Tooltip Styles */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: #1F2937;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

.tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1F2937;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
    z-index: 1000;
}

.tooltip:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Detailed Profile Modal Styles */
.modal-content-profile {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

.profile-header-new {
    padding: 24px 32px 0 32px;
    border-bottom: 1px solid #E5E7EB;
    position: relative;
    flex-shrink: 0;
}

.close-btn-new {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    font-size: 28px;
    color: #6B7280;
    cursor: pointer;
    line-height: 1;
}

.profile-header-content {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    align-items: center;
}

.profile-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #E5E7EB;
    color: #6B7280;
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info-new h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 4px 0;
    color: #111827;
}

.candidate-count-badge {
    font-size: 12px;
    color: #6B7280;
}

.meta-info {
    font-size: 14px;
    color: #4B5563;
    margin: 4px 0 8px 0;
}

.role-badge {
    display: inline-block;
    background: #ECFDF5;
    color: #059669;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
}

.profile-tabs {
    display: flex;
    gap: 32px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #6B7280;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.tab-btn.active {
    color: #223f7c;
    /* Blue */
    border-bottom-color: #223f7c;
}

.profile-body-new {
    padding: 24px 32px;
    overflow-y: auto;
    flex: 1;
}

.copilot-box {
    background: linear-gradient(135deg, #F0F9FF 0%, #FFFFFF 100%);
    border: 1px solid #BFDBFE;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.copilot-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #223f7c;
    margin-bottom: 12px;
}

.copilot-icon {
    background: #223f7c;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 12px;
    /* Pill/Capsule or Circle */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.social-buttons-row {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.social-btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    background: white;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.1s;
}

.social-btn:hover {
    background: #F9FAFB;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-text {
    font-size: 14px;
    color: #4B5563;
    line-height: 1.6;
    margin-bottom: 24px;
}

.profile-footer-actions {
    padding: 16px 32px;
    border-top: 1px solid #E5E7EB;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    flex-shrink: 0;
}

.footer-btn-outline {
    padding: 10px 16px;
    border: 1px solid #E5E7EB;
    background: white;
    color: #374151;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    margin-right: 12px;
}

.footer-btn-danger {
    padding: 10px 16px;
    border: 1px solid #FECACA;
    background: white;
    color: #DC2626;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    margin-right: 12px;
}

.footer-btn-primary {
    padding: 10px 20px;
    background: #223f7c;
    /* Bonsenhor Blue */
    border: none;
    color: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.empty-state-tab {
    padding: 40px;
    text-align: center;
    color: #9CA3AF;
    font-size: 14px;
}

/* Timeline & Lists */
.timeline-item {
    position: relative;
    padding-left: 24px;
    margin-bottom: 24px;
    border-left: 2px solid #E5E7EB;
}

.timeline-item:last-child {
    margin-bottom: 0;
    border-left-color: transparent;
}

.timeline-dot {
    position: absolute;
    left: -7px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #E5E7EB;
    border: 2px solid white;
}

.timeline-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
}

.timeline-content p {
    font-size: 13px;
    color: #6B7280;
    margin: 0;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.info-item label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.info-item span {
    font-size: 14px;
    color: #4B5563;
}

/* Keywords */
.keyword-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.keyword-tag {
    background: #F3F4F6;
    color: #374151;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.keyword-tag .remove-tag {
    cursor: pointer;
    color: #9CA3AF;
    font-size: 16px;
    line-height: 1;
}

.keyword-tag .remove-tag:hover {
    color: #DC2626;
}

.keyword-input-wrapper {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

/* Observations */
.observation-form textarea {
    width: 100%;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    min-height: 120px;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
}

.observation-form textarea:focus {
    border-color: #223f7c;
}

.observation-list {
    margin-top: 24px;
}

.observation-item {
    background: #F9FAFB;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}

.observation-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #9CA3AF;
    margin-bottom: 8px;
}

.observation-text {
    font-size: 14px;
    color: #4B5563;
    white-space: pre-wrap;
}

/* Mobile Responsiveness for Talent Bank */
@media (max-width: 768px) {
    .talent-bank-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .talent-bank-actions {
        width: 100%;
        justify-content: space-between;
    }

    .search-container {
        flex-direction: column;
    }

    .filter-group {
        gap: 12px;
    }

    /* Transform Table to Cards on Mobile - HANDLED GLOBALLY IN components.css */

    /* Adjust Modals for Mobile */
    .modal {
        width: 95%;
        max-height: 95vh;
        margin: 10px;
    }

    .form-grid-2 {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .modal-content-profile {
        width: 100% !important;
        height: 100vh !important;
        border-radius: 0 !important;
    }

    .profile-tabs {
        gap: 16px;
        overflow-x: auto;
        padding-bottom: 10px;
        scrollbar-width: none;
        margin-top: 10px;
    }

    .profile-tabs::-webkit-scrollbar {
        display: none;
    }

    .profile-header-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding-bottom: 15px;
    }

    .profile-avatar-large {
        width: 60px;
        height: 60px;
        margin: 0 auto;
    }

    .profile-footer-actions {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }

    .profile-footer-actions .status-controls {
        width: 100%;
        justify-content: space-between;
    }

    .status-btn {
        flex: 1;
        padding: 10px 4px !important;
        font-size: 11px !important;
    }
}