/* ==========================================
   RECRUITER WORKSPACE LAYOUT & STYLING
   ========================================== */
.rec-layout {
    display: flex;
    min-height: 100vh;
    background: #08080A;
    color: #fff;
    font-family: 'Outfit', sans-serif;
}

/* Sidebar - Collapsed Rail by default, Overlay Expansion on hover */
.rec-sidebar {
    width: 68px;
    background: #0B0B0D;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 1.25rem 0.5rem;
    box-sizing: border-box;
    transition: width 0.22s cubic-bezier(0.23, 1, 0.32, 1), 
                padding 0.22s cubic-bezier(0.23, 1, 0.32, 1), 
                box-shadow 0.22s ease,
                border-color 0.22s ease;
    will-change: width, box-shadow;
    overflow-x: hidden;
    overflow-y: auto;
}

.rec-sidebar.expanded {
    width: 260px;
    padding: 1.5rem 1rem;
    box-shadow: 12px 0 32px rgba(0, 0, 0, 0.65), 0 0 1px rgba(255, 255, 255, 0.1);
    border-right-color: rgba(255, 255, 255, 0.08);
}

/* Sidebar Header & Toggle Button */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
    position: relative;
    min-height: 36px;
    width: 100%;
}

.rec-sidebar.expanded .sidebar-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 0.75rem;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0;
    padding: 0;
    cursor: pointer;
    transition: opacity 0.15s ease;
    user-select: none;
    min-width: 0;
}

.rec-sidebar.expanded .sidebar-logo {
    justify-content: flex-start;
    padding-left: 0.25rem;
}

.sidebar-logo-img {
    height: 32px;
    width: 32px;
    flex-shrink: 0;
    display: block;
}

.sidebar-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.sidebar-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
    transform: scale(1.04);
}

.sidebar-toggle-btn:focus-visible {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.35);
    display: inline-flex !important;
}

.sidebar-toggle-btn:active {
    transform: scale(0.96);
}

.sidebar-toggle-icon {
    width: 18px;
    height: 18px;
    display: block;
}

.sidebar-toggle-btn .toggle-icon-expand {
    display: none;
}

.sidebar-toggle-btn .toggle-icon-collapse {
    display: block;
}

/* On desktop with pointer/hover support, hide manual toggle button unless focused via keyboard */
@media (hover: hover) and (pointer: fine) {
    .sidebar-toggle-btn:not(:focus-visible) {
        display: none !important;
    }
}

.sidebar-logo:hover {
    opacity: 0.85;
}

.logo-emoji {
    font-size: 1.8rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, #10b981);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
    display: none !important;
}

.rec-sidebar.expanded .logo-text {
    display: inline-block !important;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.sidebar-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, padding 0.22s ease;
    margin-bottom: 0.5rem;
    border: 1px solid transparent;
    width: 100%;
    box-sizing: border-box;
}

.rec-sidebar.expanded .sidebar-link {
    justify-content: flex-start;
    padding: 0.85rem 1rem;
    margin-bottom: 0.35rem;
}

.sidebar-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
}

.sidebar-link.active {
    color: #fff;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.sidebar-link span:not(.nav-icon),
.sign-out-btn span:not(.nav-icon) {
    display: none !important;
    white-space: nowrap;
}

.rec-sidebar.expanded .sidebar-link span:not(.nav-icon),
.rec-sidebar.expanded .sign-out-btn span:not(.nav-icon) {
    display: inline-block !important;
}

.nav-icon {
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-footer {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sign-out-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    background: transparent;
    border: 1px solid transparent;
    color: #f1f5f9;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, padding 0.22s ease;
    text-align: left;
    margin-bottom: 0.5rem;
    box-sizing: border-box;
}

.rec-sidebar.expanded .sign-out-btn {
    justify-content: flex-start;
    padding: 0.85rem 1rem;
    margin-bottom: 0;
}

.sign-out-btn:hover {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* Main Content Wrapper - Anchored to collapsed sidebar rail (68px) */
.rec-main-wrapper {
    flex: 1;
    margin-left: 68px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: margin-left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sidebar Collapsed Rail (Desktop & Tablet > 800px) */
html.sidebar-pref-collapsed .rec-layout .rec-sidebar:not(.expanded),
.rec-layout.sidebar-collapsed .rec-sidebar:not(.expanded),
.rec-sidebar.collapsed {
    width: 68px;
    padding: 1.25rem 0.5rem;
}

html.sidebar-pref-collapsed .rec-layout .rec-main-wrapper,
.rec-layout.sidebar-collapsed .rec-main-wrapper {
    margin-left: 68px;
}

html.sidebar-pref-collapsed .rec-sidebar:not(.expanded) .sidebar-header,
.rec-layout.sidebar-collapsed .rec-sidebar:not(.expanded) .sidebar-header,
.rec-sidebar.collapsed .sidebar-header {
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
    padding: 0;
}

html.sidebar-pref-collapsed .rec-sidebar:not(.expanded) .sidebar-logo,
.rec-layout.sidebar-collapsed .rec-sidebar:not(.expanded) .sidebar-logo,
.rec-sidebar.collapsed .sidebar-logo {
    justify-content: center;
    padding: 0;
    margin-bottom: 0;
}

html.sidebar-pref-collapsed .rec-sidebar:not(.expanded) .logo-text,
.rec-layout.sidebar-collapsed .rec-sidebar:not(.expanded) .logo-text,
.rec-sidebar.collapsed .logo-text {
    display: none !important;
}

html.sidebar-pref-collapsed .rec-sidebar:not(.expanded) .sidebar-link span:not(.nav-icon),
.rec-layout.sidebar-collapsed .rec-sidebar:not(.expanded) .sidebar-link span:not(.nav-icon),
.rec-sidebar.collapsed .sidebar-link span:not(.nav-icon),
html.sidebar-pref-collapsed .rec-sidebar:not(.expanded) .sign-out-btn span:not(.nav-icon),
.rec-layout.sidebar-collapsed .rec-sidebar:not(.expanded) .sign-out-btn span:not(.nav-icon),
.rec-sidebar.collapsed .sign-out-btn span:not(.nav-icon) {
    display: none !important;
}

html.sidebar-pref-collapsed .rec-sidebar:not(.expanded) .sidebar-link,
.rec-layout.sidebar-collapsed .rec-sidebar:not(.expanded) .sidebar-link,
.rec-sidebar.collapsed .sidebar-link,
html.sidebar-pref-collapsed .rec-sidebar:not(.expanded) .sign-out-btn,
.rec-layout.sidebar-collapsed .rec-sidebar:not(.expanded) .sign-out-btn,
.rec-sidebar.collapsed .sign-out-btn {
    justify-content: center;
    padding: 0.75rem 0;
    width: 100%;
    margin-bottom: 0.5rem;
}

/* Icon swap in collapsed mode */
html.sidebar-pref-collapsed .sidebar-toggle-btn .toggle-icon-collapse,
.rec-layout.sidebar-collapsed .sidebar-toggle-btn .toggle-icon-collapse,
.rec-sidebar.collapsed .sidebar-toggle-btn .toggle-icon-collapse {
    display: none !important;
}

html.sidebar-pref-collapsed .sidebar-toggle-btn .toggle-icon-expand,
.rec-layout.sidebar-collapsed .sidebar-toggle-btn .toggle-icon-expand,
.rec-sidebar.collapsed .sidebar-toggle-btn .toggle-icon-expand {
    display: block !important;
}

/* Instant initial load without animation transitions */
.no-sidebar-transition,
.no-sidebar-transition * {
    transition: none !important;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    .rec-sidebar,
    .rec-sidebar *,
    .rec-main-wrapper {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* Topbar */
.rec-topbar {
    height: 70px;
    background: rgba(8, 8, 10, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.5rem;
    position: sticky;
    top: 0;
    z-index: 90;
    margin: 0;
    margin-bottom: 0;
}

.topbar-title-section h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.topbar-profile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.topbar-username {
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Content Area */
.rec-content {
    padding: 2.5rem;
    flex: 1;
    overflow-y: auto;
}

.rec-view.hidden {
    display: none !important;
}

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(16, 185, 129, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.welcome-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
}

.welcome-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin: 0 0 1.5rem 0;
}

.welcome-meta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.meta-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    margin-right: 6px;
    display: inline-block;
}

/* Recruiter Grid */
.rec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.08);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.stat-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-icon {
    font-size: 1.25rem;
    opacity: 0.8;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.stat-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Profile Details Card */
.profile-details-card {
    padding: 2.5rem;
}

.profile-card-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1.5rem;
}

.profile-avatar {
    font-size: 3.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-meta h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.profile-meta p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem 1.5rem;
}

.info-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-label {
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.info-value {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 500;
}

/* ========================================================
   Recruiter Profile Card — Horizontal Layout & Redesign
   ======================================================== */
.recruiter-profile-card,
.candidate-profile-card {
    position: relative;
    padding: 2.5rem 3.5rem 2.5rem 2.5rem;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Small Pencil Icon Button (Top-Right Corner) */
.profile-edit-icon-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
    padding: 0;
}

.profile-edit-icon-btn:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.5);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.profile-edit-icon-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: #6366f1;
    color: #ffffff;
}

.profile-edit-icon-btn:active {
    transform: translateY(0);
}

/* Horizontal Side-by-Side Layout */
.rec-profile-layout {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
    width: 100%;
}

/* Left Section: Identity (Avatar, Display Name, Email grouped vertically) */
.rec-profile-identity {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    flex: 0 0 220px;
    max-width: 240px;
    min-width: 0;
}

.rec-profile-avatar {
    font-size: 2.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 76px;
    height: 76px;
    min-width: 76px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    margin-bottom: 0.25rem;
}

.rec-profile-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    width: 100%;
}

/* Typography Hierarchy */
.rec-profile-meta h3#profile-rec-name,
.rec-profile-meta h3#profile-cand-name {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
    letter-spacing: -0.015em;
    word-break: break-word;
}

.rec-profile-meta p#profile-rec-email,
.rec-profile-meta p#profile-cand-email {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: #94a3b8;
    line-height: 1.35;
    word-break: break-all;
}

/* Vertical Divider */
.rec-profile-divider {
    width: 1px;
    align-self: stretch;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.02),
        rgba(255, 255, 255, 0.08) 20%,
        rgba(255, 255, 255, 0.08) 80%,
        rgba(255, 255, 255, 0.02)
    );
    flex: 0 0 1px;
}

/* Right Section: Details Grid */
.rec-profile-details {
    flex: 1 1 auto;
    min-width: 0;
}

.rec-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(160px, 1fr));
    gap: 1.5rem 2rem;
}

#rec-view-profile .rec-profile-grid .info-field,
#cand-view-profile .rec-profile-grid .info-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

#rec-view-profile .rec-profile-grid .info-label,
#cand-view-profile .rec-profile-grid .info-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.06em;
}

#rec-view-profile .rec-profile-grid .info-value,
#cand-view-profile .rec-profile-grid .info-value {
    font-size: 1.05rem;
    color: #f1f5f9;
    font-weight: 500;
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: break-word;
    min-width: 0;
}

/* Responsive Breakpoints */
@media (max-width: 680px) {
    .rec-profile-layout {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }

    .rec-profile-identity {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
        padding-right: 3rem; /* Room for top-right pencil button */
    }

    .rec-profile-divider {
        width: 100%;
        height: 1px;
        background: rgba(255, 255, 255, 0.06);
    }

    .rec-profile-grid {
        grid-template-columns: repeat(2, minmax(130px, 1fr));
        gap: 1.25rem 1rem;
    }
}

@media (max-width: 480px) {
    .recruiter-profile-card,
    .candidate-profile-card {
        padding: 1.5rem !important;
    }

    .profile-edit-icon-btn {
        top: 1.25rem;
        right: 1.25rem;
        width: 34px;
        height: 34px;
    }

    .history-refresh-icon-btn {
        width: 34px;
        height: 34px;
        min-width: 34px;
    }

    .rec-profile-identity {
        padding-right: 2.5rem;
        gap: 0.75rem;
    }

    .rec-profile-avatar {
        width: 60px;
        height: 60px;
        min-width: 60px;
        font-size: 2rem;
    }

    .rec-profile-meta h3#profile-rec-name,
    .rec-profile-meta h3#profile-cand-name {
        font-size: 1.3rem;
    }

    .rec-profile-meta p#profile-rec-email,
    .rec-profile-meta p#profile-cand-email {
        font-size: 0.9rem;
    }

    .rec-profile-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}


/* Screening results cards */
.rec-results-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.candidate-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.candidate-card:hover {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.cand-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    min-width: 0;
}

.cand-rank {
    font-size: 1.25rem;
    font-weight: 800;
    color: #94a3b8;
    min-width: 40px;
    text-align: center;
}

.cand-rank.top-rank {
    color: #cbd5e1;
}

.cand-info {
    min-width: 0;
    flex: 1;
}

.cand-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem 0;
}

.cand-skills-summary {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.skills-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.skills-row-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    min-width: 90px;
}

.skills-row-label.matched {
    color: #10b981;
}

.skills-row-label.missing {
    color: #ef4444;
}

/* Candidate Score Right block */
.cand-right {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: 2rem;
}

.score-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.quick-view-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.quick-view-btn:hover {
    background: #10b981;
    border-color: #10b981;
}

/* Quick View Card Modal details */
.quick-view-card {
    width: 95%;
    max-width: 650px;
    max-height: 85vh;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    animation: authSlideUp 0.3s ease;
    padding: 0;
    overflow: hidden;
}

.quick-view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.quick-view-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.quick-view-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.qv-profile-summary {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.qv-avatar {
    font-size: 2.2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qv-meta h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.qv-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.qv-section h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 0.5rem;
}

.qv-section p {
    margin: 0;
    line-height: 1.5;
    color: #e2e8f0;
}

.qv-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    color: #cbd5e1;
    font-size: 0.9rem;
}

.skills-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.35rem;
}

.skills-block h5 {
    margin: 0;
    font-size: 0.8rem;
    color: #cbd5e1;
    font-weight: 600;
}

/* Candidate Analysis Snapshot - Target Job Description */
.cav-jd-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cav-jd-card,
.cav-jd-body {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 1.25rem;
    max-height: 160px;
    overflow-y: auto;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #cbd5e1;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: break-word;
    margin: 0;
    box-sizing: border-box;
}

@media (max-width: 640px) {
    .cav-jd-card,
    .cav-jd-body {
        max-height: 130px;
        padding: 1rem;
    }
}

/* Candidate Contact Info Links */
.contact-link {
    color: #818cf8;
    text-decoration: none;
    transition: color 0.15s ease, text-decoration 0.15s ease;
    word-break: break-all;
}

.contact-link:hover {
    color: #a5b4fc;
    text-decoration: underline;
}

.contact-link:focus-visible {
    outline: 2px solid #818cf8;
    outline-offset: 2px;
    border-radius: 3px;
}

/* Responsive Overrides */
@media (max-width: 800px) {
    .rec-sidebar {
        width: 64px !important;
        padding: 1rem 0.5rem !important;
    }

    .sidebar-header {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        margin-bottom: 1.5rem !important;
        padding: 0 !important;
    }

    .sidebar-toggle-btn {
        display: none !important;
    }
    
    .sidebar-logo .logo-text,
    .sidebar-link span:not(.nav-icon),
    .sign-out-btn span:not(.nav-icon) {
        display: none !important;
    }
    
    .sidebar-logo {
        justify-content: center !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
    }
    
    .sidebar-link,
    .sign-out-btn {
        justify-content: center !important;
        padding: 0.75rem 0 !important;
        width: 100% !important;
    }
    
    .rec-main-wrapper {
        margin-left: 64px !important;
    }
    
    .candidate-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }
    
    .cand-right {
        margin-left: 0;
        width: 100%;
        justify-content: space-between;
    }
}

/* ==========================================
   RECRUITER SCREENING WORKSPACE DROPDOWNS
   ========================================== */
.rec-dropdown-select,
#rec-profile-select,
#rec-jd-select {
    width: 100%;
    padding: 0.85rem 2.5rem 0.85rem 1rem;
    border-radius: 10px;
    background-color: #0c101d;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 16px;
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 500;
    color-scheme: dark;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.rec-dropdown-select:hover,
#rec-profile-select:hover,
#rec-jd-select:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background-color: #111728;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

.rec-dropdown-select:focus,
#rec-profile-select:focus,
#rec-jd-select:focus {
    border-color: #10b981;
    background-color: #111728;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2), 0 4px 20px rgba(0, 0, 0, 0.4);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

/* Dropdown Popup Options (Ensures dark theme across all platforms & browsers) */
.rec-dropdown-select option,
#rec-profile-select option,
#rec-jd-select option {
    background-color: #0b0f19 !important;
    color: #f8fafc !important;
    font-size: 0.92rem;
    padding: 0.75rem 1rem;
    font-weight: 400;
}

.rec-dropdown-select option:hover,
.rec-dropdown-select option:focus,
.rec-dropdown-select option:checked,
#rec-profile-select option:hover,
#rec-profile-select option:focus,
#rec-profile-select option:checked,
#rec-jd-select option:hover,
#rec-jd-select option:focus,
#rec-jd-select option:checked {
    background-color: #10b981 !important;
    color: #ffffff !important;
}

/* Screening History Styles */
.history-item-card {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.history-item-card:hover {
    border-color: rgba(99, 102, 241, 0.35) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.history-more-info-btn {
    transition: all 0.2s ease;
}

.history-more-info-btn:hover {
    border-color: rgba(99, 102, 241, 0.6);
    background: rgba(99, 102, 241, 0.2);
    color: #fff;
}

/* Screening History Refresh Icon Button */
.history-refresh-icon-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    flex-shrink: 0;
}

.history-refresh-icon-btn:hover:not(:disabled) {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.5);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.history-refresh-icon-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: #6366f1;
    color: #ffffff;
}

.history-refresh-icon-btn:active:not(:disabled) {
    transform: translateY(0);
}

.history-refresh-icon-btn:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.history-refresh-icon-btn .refresh-icon {
    display: block;
    transition: transform 0.2s ease;
}

.history-refresh-icon-btn.is-refreshing .refresh-icon {
    animation: spin-refresh 0.85s linear infinite;
}

@keyframes spin-refresh {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Advanced Scoring Settings */
.advanced-scoring-box {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.advanced-scoring-toggle:hover {
    background: rgba(255, 255, 255, 0.03) !important;
}

.advanced-scoring-box input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    outline: none;
}

.advanced-scoring-box input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #10b981;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
    transition: transform 0.1s ease;
}

.advanced-scoring-box input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.scoring-applied-banner {
    animation: fadeIn 0.3s ease-in-out;
}


