/* --- Recruiter Hub Design Tokens --- */
:root {
    --bg-main: #0B0F19;
    --bg-card: rgba(22, 28, 45, 0.6);
    --bg-card-hover: rgba(30, 37, 58, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(79, 110, 247, 0.5);
    
    --primary: #4F6EF7;
    --primary-glow: rgba(79, 110, 247, 0.15);
    --accent: #10B981;
    --accent-glow: rgba(16, 185, 129, 0.1);
    --accent-warning: #F59E0B;
    
    --text-primary: #F3F4F6;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-elastic: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 25px var(--primary-glow);
}

/* --- Base Resets --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(79, 110, 247, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.03) 0%, transparent 40%);
    background-attachment: fixed;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* --- Glass Scrollbars --- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(11, 15, 25, 0.5);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* --- Navigation --- */
.recruiter-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 15, 25, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    background: linear-gradient(135deg, var(--primary), #758DFD);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 0 15px rgba(79, 110, 247, 0.4);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.logo-accent {
    background: linear-gradient(135deg, var(--primary), #A5B4FC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    background: var(--primary-glow);
    color: var(--primary);
    box-shadow: inset 0 0 0 1px rgba(79, 110, 247, 0.2);
}

.nav-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.recruiter-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(79, 110, 247, 0.2);
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(79, 110, 247, 0.3);
}

.recruiter-info {
    display: flex;
    flex-direction: column;
}

.recruiter-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.recruiter-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* --- Layout Containers --- */
.main-layout {
    max-width: 1440px;
    margin: 72px auto 0 auto;
    padding: 2.5rem 2rem;
}

/* --- Hero & Search Section --- */
.hero-search-section {
    margin-bottom: 2.5rem;
    text-align: center;
    padding: 2rem 0;
    position: relative;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #FFFFFF 30%, #D1D5DB 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

.search-bar-wrap {
    max-width: 800px;
    margin: 0 auto;
}

.search-form {
    width: 100%;
}

.search-input-group {
    display: flex;
    align-items: center;
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 0.375rem 0.375rem 0.375rem 1.25rem;
    box-shadow: var(--shadow-md), 0 0 0 0 transparent;
    transition: var(--transition-smooth);
}

.search-input-group:focus-within {
    border-color: var(--primary);
    box-shadow: var(--shadow-md), 0 0 20px var(--primary-glow);
}

.search-icon {
    color: var(--text-secondary);
    font-size: 1.15rem;
}

.search-input-group input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 1rem;
    padding: 0.75rem 1rem;
    flex: 1;
    font-family: var(--font-body);
}

.search-input-group input::placeholder {
    color: var(--text-muted);
}

.search-submit-btn {
    background: linear-gradient(135deg, var(--primary) 0%, #3b5bdb 100%);
    border: none;
    color: white;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 10px rgba(79, 110, 247, 0.3);
    position: relative;
}

.search-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(79, 110, 247, 0.4);
}

.search-submit-btn .spinner {
    display: none;
}

.search-submit-btn.loading .btn-content {
    visibility: hidden;
    opacity: 0;
}

.search-submit-btn.loading .spinner {
    display: flex;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* --- Workspace Layout --- */
.portal-workspace {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    align-items: start;
}

/* --- Left Panel: Filters --- */
.filters-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.75rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 96px;
    box-shadow: var(--shadow-sm);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.filter-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.filter-panel-title {
    font-size: 1.15rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.clear-filters-btn {
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.clear-filters-btn:hover {
    color: white;
    text-decoration: underline;
}

.filter-section {
    margin-bottom: 1.75rem;
}

.filter-title {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-options-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-chip-option {
    display: block;
    position: relative;
    cursor: pointer;
}

.filter-chip-option input {
    position: absolute;
    opacity: 0;
}

.filter-chip-option span {
    display: block;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.filter-chip-option:hover span {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.filter-chip-option input:checked + span {
    background: var(--primary-glow);
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 500;
}

/* --- custom dropdown --- */
.select-wrapper {
    position: relative;
    width: 100%;
}

.select-wrapper select {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    outline: none;
    appearance: none;
    font-family: var(--font-body);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.select-wrapper select:focus {
    border-color: var(--primary);
}

.filter-text-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    outline: none;
    font-family: var(--font-body);
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.filter-text-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.select-arrow {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* --- custom checkboxes --- */
.filter-options-grid {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
}

.checkbox-option input {
    position: absolute;
    opacity: 0;
}

.custom-checkbox {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--border-color);
    border-radius: 5px;
    display: inline-block;
    transition: var(--transition-smooth);
    position: relative;
    background: rgba(255, 255, 255, 0.02);
}

.checkbox-option input:checked ~ .custom-checkbox {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-option input:checked ~ .custom-checkbox::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.65rem;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-option:hover .custom-checkbox {
    border-color: rgba(255, 255, 255, 0.2);
}

/* --- Compliance Card --- */
.compliance-badge-card {
    background: rgba(16, 185, 129, 0.02);
    border: 1px dashed rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 2rem;
    display: flex;
    gap: 0.75rem;
}

.compliance-badge-card .badge-icon {
    font-size: 1.25rem;
    color: var(--accent);
    flex-shrink: 0;
}

.compliance-badge-card h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.compliance-badge-card p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* --- Right Panel: Results Grid --- */
.results-container {
    flex: 1;
}

.results-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.results-count {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.sort-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.select-wrapper.sm select {
    padding: 0.4rem 2rem 0.4rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
}

/* --- Shimmer Loading --- */
.candidates-grid.loading {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.shimmer-card {
    height: 180px;
    background: linear-gradient(90deg, var(--bg-card) 25%, rgba(40, 48, 75, 0.4) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --- Candidate Cards --- */
.candidates-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.candidate-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    gap: 1.5rem;
    align-items: start;
    transition: var(--transition-elastic);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    position: relative;
}

.candidate-card.selected {
    border-color: var(--primary);
    background: rgba(79, 110, 247, 0.05);
    box-shadow: var(--shadow-md), 0 0 15px rgba(79, 110, 247, 0.15);
}

.candidate-card:hover {
    transform: translateY(-2px);
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.cand-avatar {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, #3B82F6 100%);
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(79, 110, 247, 0.2);
}

.cand-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cand-header-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cand-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
}

.tag-badge {
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
}

.tag-badge.qualified {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.tag-badge.inter {
    background: var(--primary-glow);
    color: var(--primary);
    border: 1px solid rgba(79, 110, 247, 0.2);
}

.tag-badge.score {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.cand-meta-strip {
    display: flex;
    gap: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.meta-item i {
    color: var(--text-muted);
}

.cand-activity-strip {
    display: flex;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.775rem;
    margin-top: 0.15rem;
    flex-wrap: wrap;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 0.4rem;
    width: 100%;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.activity-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.activity-dot.active-recent {
    background-color: var(--accent); /* green */
    box-shadow: 0 0 8px var(--accent);
}

.activity-dot.active-old {
    background-color: var(--text-muted);
}

.cand-summary {
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    margin: 0.25rem 0;
}

.cand-skills-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 6px;
}

/* --- Action Buttons --- */
.cand-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: center;
    min-width: 140px;
}

.btn {
    text-decoration: none;
    border: none;
    outline: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 10px rgba(79, 110, 247, 0.2);
}

.btn-primary:hover {
    background: #3b5bdb;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(79, 110, 247, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* --- Empty state --- */
.empty-state-view {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: 20px;
}

.empty-illustration {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.empty-state-view h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.empty-state-view p {
    color: var(--text-secondary);
    max-width: 450px;
    margin: 0 auto 1.5rem auto;
}

.reset-search-btn {
    background: var(--primary-glow);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.reset-search-btn:hover {
    background: var(--primary);
    color: white;
}

/* --- Modal Overlays & Glass Cards --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 7, 12, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-card {
    background: #0E1322;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    width: 100%;
    max-width: 750px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: modalScale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

@keyframes modalScale {
    0% { transform: scale(0.9) translateY(20px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-smooth);
}

.modal-close-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.modal-header-banner {
    height: 100px;
    background: linear-gradient(135deg, var(--primary) 0%, #1E293B 100%);
    position: relative;
}

.modal-scroll-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.modal-footer-sticky {
    padding: 1.25rem 2rem;
    background: #0A0D18;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* --- Profile Content Details --- */
.profile-modal-head {
    display: flex;
    gap: 1.5rem;
    margin-top: -20px;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.profile-avatar-lg {
    width: 90px;
    height: 90px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--primary) 0%, #2563EB 100%);
    color: white;
    font-size: 2.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    border: 4px solid #0E1322;
}

.profile-title-box {
    align-self: flex-end;
    padding-bottom: 0.5rem;
}

.profile-name-lg {
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
}

.profile-tagline {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.profile-section-title {
    font-size: 1.1rem;
    border-bottom: 1.5px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin: 1.75rem 0 1rem 0;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-section-title i {
    color: var(--primary);
}

.profile-grid-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.info-card-cell {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 0.85rem 1.1rem;
    border-radius: 12px;
}

.info-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.info-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

.profile-text-block {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    border-radius: 14px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    white-space: pre-line;
}

/* --- Secure CV Modal Viewer --- */
.cv-modal-card {
    background: #0E1322;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 100%;
    max-width: 900px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.cv-modal-header {
    padding: 1.25rem 2rem;
    background: #0A0D18;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cv-modal-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pdf-accent {
    font-size: 2rem;
    color: #EF4444;
}

.cv-modal-title h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
}

.secure-tag {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 500;
}

.cv-modal-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.action-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cv-close {
    position: relative;
    top: 0;
    right: 0;
}

.cv-viewer-viewport {
    flex: 1;
    overflow: auto;
    background: #090B11;
    display: flex;
    justify-content: center;
    align-items: start;
    padding: 2rem;
    position: relative;
}

.cv-page-container {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: white;
    border-radius: 8px;
    overflow: hidden;
    max-width: 100%;
}

.cv-page-container img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* --- Loader, error states in CV --- */
.cv-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0E1322;
    z-index: 10;
    gap: 1rem;
    color: var(--text-secondary);
}

.spinner-icon {
    font-size: 2.5rem;
    color: var(--primary);
}

.cv-error-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 400px;
    margin: auto;
    padding: 2rem;
}

.error-icon {
    font-size: 3.5rem;
    color: #EF4444;
    margin-bottom: 1rem;
}

.cv-error-view h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.cv-error-view p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.cv-modal-footer {
    padding: 1rem 2rem;
    background: #0A0D18;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
}

.cv-page-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.page-nav-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.page-nav-btn:hover:not(:disabled) {
    background: var(--primary);
    border-color: var(--primary);
}

.page-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-counter {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* --- Toast --- */
.toast-popup {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #0E1322;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(16, 185, 129, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateY(120px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-popup.active {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    font-size: 1.25rem;
    color: var(--accent);
}

.toast-message {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* --- Mobile Filter Controls --- */
.mobile-filter-btn {
    display: none;
}

.close-filters-btn {
    display: none;
}

.filters-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.filters-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* --- Responsiveness --- */
@media (max-width: 1024px) {
    .portal-workspace {
        grid-template-columns: 1fr;
    }
    
    .filters-panel {
        position: fixed;
        top: auto;
        bottom: -100%; /* off-screen by default */
        left: 0;
        width: 100%;
        height: auto;
        max-height: 80vh;
        border-radius: 24px 24px 0 0;
        border: 1px solid var(--border-color);
        border-bottom: none;
        background: #0B0F19; /* Solid background for overlay */
        z-index: 10001;
        transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
    }
    
    .filters-panel.open {
        bottom: 0;
    }
    
    .mobile-filter-btn {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        background: var(--primary-glow);
        border: 1px solid rgba(79, 110, 247, 0.3);
        color: var(--primary);
        padding: 0.5rem 1rem;
        border-radius: 10px;
        font-family: var(--font-heading);
        font-weight: 600;
        font-size: 0.9rem;
        cursor: pointer;
        transition: var(--transition-smooth);
    }
    
    .mobile-filter-btn:hover {
        background: var(--primary);
        color: white;
    }
    
    .close-filters-btn {
        display: block;
        background: transparent;
        border: none;
        color: var(--text-secondary);
        font-size: 1.75rem;
        cursor: pointer;
        line-height: 1;
        transition: var(--transition-smooth);
    }
    
    .close-filters-btn:hover {
        color: #EF4444;
    }
}

@media (max-width: 768px) {
    .main-layout {
        padding: 1.5rem 1rem;
        margin-top: 64px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .nav-container {
        padding: 0.75rem 1rem;
        height: 64px;
    }
    
    .nav-logo {
        gap: 0.5rem;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    .logo-icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        font-size: 1.1rem;
    }
    
    .nav-links {
        display: flex;
        gap: 0.5rem;
    }
    
    .nav-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
        gap: 0.35rem;
    }
    
    .nav-notification-bell {
        margin-right: 0.5rem !important;
        width: 36px !important;
        height: 36px !important;
    }
    
    .nav-profile {
        gap: 0.5rem;
    }
    
    .recruiter-info {
        display: none;
    }
    
    .recruiter-avatar {
        width: 34px;
        height: 34px;
    }
    
    .candidate-card {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .cand-actions {
        flex-direction: row;
        width: 100%;
    }
    
    .cand-actions button, .cand-actions a {
        flex: 1;
    }
    
    .profile-modal-head {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-title-box {
        align-self: center;
    }
    
    .profile-grid-info {
        grid-template-columns: 1fr;
    }
    
    .modal-card {
        max-height: 95vh;
    }
}

@media (max-width: 576px) {
    .logo-text {
        display: none;
    }
}

@media (max-width: 400px) {
    .nav-link .nav-text {
        display: none;
    }
    .nav-link {
        padding: 0.5rem;
    }
}

/* --- Gemma Matchmaker Console Premium Styling --- */
.purple-badge {
    background: rgba(139, 92, 246, 0.1) !important;
    color: #a78bfa !important;
    border: 1px solid rgba(139, 92, 246, 0.2) !important;
}

.gemma-console-card {
    background: linear-gradient(135deg, rgba(22, 28, 45, 0.8) 0%, rgba(15, 12, 30, 0.8) 100%);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(139, 92, 246, 0.1);
    position: relative;
    overflow: hidden;
}

.gemma-console-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.gemma-console-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #FFFFFF 40%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gemma-console-header p {
    color: var(--text-secondary);
    max-width: 800px;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.prompt-templates-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.template-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #a78bfa;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.prompt-template-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.prompt-template-btn:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
    color: #f5f3ff;
    transform: translateY(-1px);
}

.gemma-textarea-wrapper {
    background: rgba(11, 15, 25, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem;
    transition: var(--transition-smooth);
    margin-bottom: 1.5rem;
}

.gemma-textarea-wrapper:focus-within {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.15);
}

.gemma-textarea-wrapper textarea {
    width: 100%;
    height: 140px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1.05rem;
    resize: none;
    line-height: 1.5;
}

.gemma-textarea-actions {
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.75rem;
    margin-top: 0.5rem;
}

.tokens-info {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.btn-gemma-launch {
    width: 100%;
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    border: none;
    outline: none;
    color: white;
    padding: 1.1rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-heading);
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.3), 0 0 30px rgba(124, 58, 237, 0.1);
    transition: var(--transition-elastic);
}

.btn-gemma-launch:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 15px 25px rgba(124, 58, 237, 0.4), 0 0 40px rgba(124, 58, 237, 0.2);
}

.btn-gemma-launch:active {
    transform: translateY(0) scale(0.99);
}

/* --- Orbital Loader Style --- */
.gemma-loading-card {
    background: rgba(22, 28, 45, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.orbital-loader {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbit {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
}

.orbit-1 {
    width: 100px;
    height: 100px;
    border-top-color: #8b5cf6;
    animation: spin 2s linear infinite;
}

.orbit-2 {
    width: 80px;
    height: 80px;
    border-right-color: #ec4899;
    animation: spin 1.5s linear infinite reverse;
}

.orbit-3 {
    width: 60px;
    height: 60px;
    border-bottom-color: #3b82f6;
    animation: spin 1s linear infinite;
}

.loader-brain {
    font-size: 24px;
    color: #a78bfa;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
}

.gemma-progress-bar-container {
    width: 100%;
    max-width: 400px;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 9999px;
    margin: 1.5rem 0;
    overflow: hidden;
}

.gemma-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #ec4899);
    border-radius: 9999px;
    transition: width 0.4s ease;
}

.gemma-progress-ticker {
    font-family: monospace;
    color: #a78bfa;
    font-size: 0.9rem;
    background: rgba(139, 92, 246, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid rgba(139, 92, 246, 0.1);
}

/* --- Gemma Briefing Card --- */
.gemma-briefing-card {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(22, 28, 45, 0.6) 100%);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.briefing-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.ai-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #8b5cf6, #d946ef);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

.briefing-title h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.briefing-title span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.briefing-content {
    color: var(--text-primary);
    font-size: 1.05rem;
    line-height: 1.6;
}

.briefing-content h1 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-top: 0.5rem;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, #FFFFFF 40%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.briefing-content h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #a78bfa;
}

.briefing-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    color: #c084fc;
}

.briefing-content p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.briefing-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    list-style-type: disc;
}

.briefing-content li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.briefing-content strong {
    color: #c084fc;
    font-weight: 600;
}

.briefing-content em {
    color: #f5f3ff;
    font-style: italic;
}

/* --- Scored Card Matching Circle --- */
.gemma-match-gauge {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.gemma-match-svg {
    transform: rotate(-90deg);
}

.gemma-match-circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 6;
}

.gemma-match-circle-fill {
    fill: none;
    stroke: url(#gemma-match-gradient);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 170;
    stroke-dashoffset: 170;
    transition: stroke-dashoffset 1s ease-in-out;
}

.gemma-score {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: #a78bfa;
}

.gemma-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.5rem;
}

.gemma-candidate-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
}

.gemma-candidate-card:hover {
    transform: translateY(-4px);
    background: var(--bg-card-hover);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(139, 92, 246, 0.05);
}

.gemma-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 0.75rem;
}

.gemma-candidate-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.gemma-candidate-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.gemma-critique-box {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.gemma-critique-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #ec4899;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.gemma-critique-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.gemma-ats-keywords-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

.gemma-ats-keywords-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.gemma-ats-badge {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.15));
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #f3e8ff;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.gemma-ats-badge:hover {
    border-color: rgba(139, 92, 246, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}

/* --- Notifications and History Sidebar Drawer --- */
.nav-notification-bell:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(79, 110, 247, 0.4) !important;
}
.nav-notification-bell:hover i {
    color: var(--text-primary) !important;
}
.notifications-panel::-webkit-scrollbar {
    width: 6px;
}
.notifications-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
}
.notifications-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

.history-item.running {
    border-left: 4px solid var(--primary) !important;
}
.history-item.completed {
    border-left: 4px solid var(--accent) !important;
}
.history-item.errored {
    border-left: 4px solid #EF4444 !important;
}

.panel-close-btn:hover {
    color: #EF4444 !important;
    transform: scale(1.1);
}

.cancel-search-btn:hover {
    background: rgba(239, 68, 68, 0.25) !important;
    border-color: rgba(239, 68, 68, 0.5) !important;
    color: #f87171 !important;
    transform: translateY(-1px);
}

/* --- Insistent Action Toast Premium Styling --- */
.toast-popup.action-toast {
    background: linear-gradient(135deg, #0e1322 0%, #170f2b 100%) !important;
    border: 1px solid rgba(139, 92, 246, 0.35) !important;
    box-shadow: var(--shadow-lg), 0 0 30px rgba(139, 92, 246, 0.25) !important;
    padding: 1.25rem 1.75rem !important;
    gap: 1.25rem !important;
    align-items: center !important;
    border-radius: 16px !important;
    transform: translateY(150px);
    max-width: 480px !important;
    width: calc(100% - 4rem) !important;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.toast-popup.action-toast.active {
    transform: translateY(0) !important;
    opacity: 1 !important;
}

/* --- Logic Modal & Table Badges --- */
.operator-badge {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 6px;
    display: inline-block;
    text-align: center;
    min-width: 50px;
}

.operator-badge.op-and {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.operator-badge.op-or {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.operator-badge.op-not {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.keyword-badge {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-weight: 500;
    font-family: monospace;
}

/* Logic table styles */
#logicKeywordsTable td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

#logicKeywordsTable tr:last-child td {
    border-bottom: none;
}

/* --- Light Mode Support --- */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.light-mode {
    --bg-main: #F4F6FA;
    --bg-card: #FFFFFF;
    --bg-card-hover: #FFFFFF;
    --border-color: rgba(0, 0, 0, 0.08);
    --border-focus: rgba(79, 110, 247, 0.5);
    
    --primary: #4F6EF7;
    --primary-glow: rgba(79, 110, 247, 0.08);
    --accent: #10B981;
    --accent-glow: rgba(16, 185, 129, 0.06);
    --accent-warning: #D97706;
    
    --text-primary: #111827;
    --text-secondary: #4B5563;
    --text-muted: #8F9CAE;
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 25px rgba(79, 110, 247, 0.08);
    
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(79, 110, 247, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.02) 0%, transparent 40%);
}

body.light-mode ::-webkit-scrollbar-track {
    background: rgba(243, 244, 246, 0.5);
}

body.light-mode ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
}

body.light-mode ::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

/* Navbar */
body.light-mode .recruiter-navbar {
    background: rgba(255, 255, 255, 0.75);
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

body.light-mode .nav-link:hover {
    background: rgba(0, 0, 0, 0.03);
}

body.light-mode .nav-link.active {
    background: var(--primary-glow);
    color: var(--primary);
}

body.light-mode .recruiter-name {
    color: #111827;
}

body.light-mode .theme-toggle-btn {
    background: rgba(0, 0, 0, 0.03) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    color: var(--text-secondary) !important;
}

body.light-mode .theme-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.06) !important;
    color: #111827 !important;
}

body.light-mode .nav-notification-bell {
    background: rgba(0, 0, 0, 0.03) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

body.light-mode .nav-notification-bell i {
    color: var(--text-secondary) !important;
}

body.light-mode .nav-notification-bell:hover {
    background: rgba(0, 0, 0, 0.06) !important;
}

body.light-mode .nav-notification-bell:hover i {
    color: #111827 !important;
}

body.light-mode .bell-badge {
    border-color: #F4F6FA !important;
}

/* Hero Section Gradients */
body.light-mode .hero-title {
    background: linear-gradient(135deg, #111827 30%, #4B5563 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-mode .search-divider {
    color: var(--text-muted) !important;
}

/* Search inputs */
body.light-mode .search-input-group {
    background: #FFFFFF !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

body.light-mode .search-input-group input {
    color: #111827 !important;
}

body.light-mode .search-input-group input::placeholder {
    color: var(--text-muted) !important;
}

body.light-mode .search-input-group:focus-within {
    border-color: var(--primary) !important;
    box-shadow: 0 4px 20px rgba(79, 110, 247, 0.1) !important;
}

body.light-mode .search-input-group.prompt-group {
    background: #FFFFFF !important;
    border-color: rgba(124, 58, 237, 0.3) !important;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.04) !important;
}

body.light-mode .search-input-group.prompt-group input {
    color: #111827 !important;
}

body.light-mode .example-item {
    color: var(--text-secondary) !important;
}

body.light-mode .example-item:hover {
    color: #111827 !important;
}

body.light-mode .ex-text {
    color: var(--text-secondary) !important;
}

body.light-mode .example-item:hover .ex-text {
    color: #111827 !important;
}

/* Left sidebar filters panel */
@media (max-width: 1024px) {
    body.light-mode .filters-panel {
        background: #FFFFFF !important;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.08);
    }
}

body.light-mode .filter-chip-option span {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .filter-chip-option:hover span {
    border-color: rgba(0, 0, 0, 0.18);
    color: #111827;
}

body.light-mode .filter-chip-option input:checked + span {
    background: var(--primary-glow);
    border-color: var(--primary);
    color: var(--primary);
}

body.light-mode .select-wrapper select,
body.light-mode .filter-text-input {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
    color: #111827;
}

body.light-mode .select-wrapper select:focus,
body.light-mode .filter-text-input:focus {
    border-color: var(--primary);
    background: #FFFFFF;
}

body.light-mode .custom-checkbox {
    border-color: rgba(0, 0, 0, 0.15);
    background: rgba(0, 0, 0, 0.01);
}

body.light-mode .checkbox-option:hover .custom-checkbox {
    border-color: rgba(0, 0, 0, 0.3);
}

body.light-mode .checkbox-option input:checked ~ .custom-checkbox {
    background: var(--primary);
    border-color: var(--primary);
}

body.light-mode .clear-filters-btn:hover {
    color: #111827;
}

body.light-mode .compliance-badge-card {
    background: rgba(16, 185, 129, 0.03);
    border-color: rgba(16, 185, 129, 0.15);
}

/* Modals */
body.light-mode .modal-overlay {
    background: rgba(15, 23, 42, 0.4);
}

body.light-mode .modal-card,
body.light-mode .cv-modal-card {
    background: #FFFFFF;
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .modal-close-btn {
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-secondary);
}

body.light-mode .modal-close-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

body.light-mode .profile-avatar-lg {
    border-color: #FFFFFF;
}

body.light-mode .profile-name-lg,
body.light-mode .profile-section-title,
body.light-mode .cv-modal-title h3,
body.light-mode .action-toast-title,
body.light-mode .gemma-candidate-info h3,
body.light-mode .briefing-title h3,
body.light-mode .empty-state-view h3,
body.light-mode .gemma-results-header h3 {
    color: #111827 !important;
}

body.light-mode .info-card-cell {
    background: rgba(0, 0, 0, 0.01);
    border-color: rgba(0, 0, 0, 0.06);
}

body.light-mode .profile-text-block {
    background: rgba(0, 0, 0, 0.005);
    border-color: rgba(0, 0, 0, 0.06);
}

body.light-mode .modal-footer-sticky,
body.light-mode .cv-modal-header,
body.light-mode .cv-modal-footer {
    background: #F3F4F6;
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .cv-viewer-viewport {
    background: #E5E7EB;
}

body.light-mode .cv-loader {
    background: #FFFFFF;
}

body.light-mode .action-btn {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
    color: var(--text-secondary);
}

body.light-mode .action-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #111827;
}

body.light-mode .page-nav-btn {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
    color: var(--text-secondary);
}

body.light-mode .page-nav-btn:hover:not(:disabled) {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Gemma console */
body.light-mode .gemma-console-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(245, 243, 255, 0.9) 100%);
    border-color: rgba(139, 92, 246, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04), 0 0 30px rgba(139, 92, 246, 0.03);
}

body.light-mode .gemma-console-header h2 {
    background: linear-gradient(135deg, #111827 40%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-mode .prompt-template-btn {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.06);
}

body.light-mode .prompt-template-btn:hover {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.25);
    color: #6d28d9;
}

body.light-mode .gemma-textarea-wrapper {
    background: #FFFFFF;
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .gemma-loading-card {
    background: #FFFFFF;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: var(--shadow-md);
}

body.light-mode .gemma-progress-bar-container {
    background: rgba(0, 0, 0, 0.05);
}

body.light-mode .gemma-briefing-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.04) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-color: rgba(139, 92, 246, 0.15);
    box-shadow: var(--shadow-md);
}

body.light-mode .briefing-content h1 {
    background: linear-gradient(135deg, #111827 40%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-mode .briefing-content em {
    color: #6d28d9;
}

body.light-mode .gemma-match-circle-bg {
    stroke: rgba(0, 0, 0, 0.04);
}

body.light-mode .gemma-candidate-card {
    box-shadow: var(--shadow-sm);
}

body.light-mode .gemma-candidate-card:hover {
    border-color: rgba(139, 92, 246, 0.25);
    box-shadow: var(--shadow-md), 0 0 15px rgba(139, 92, 246, 0.04);
}

body.light-mode .gemma-critique-box {
    border-top-color: rgba(0, 0, 0, 0.06);
}

body.light-mode .gemma-ats-keywords-container {
    background: rgba(0, 0, 0, 0.005);
    border-color: rgba(0, 0, 0, 0.06);
}

body.light-mode .gemma-ats-badge {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(236, 72, 153, 0.08));
    border-color: rgba(139, 92, 246, 0.18);
    color: #5b21b6;
}

body.light-mode .gemma-ats-badge:hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.1);
}

body.light-mode .gemma-matched-profiles-list {
    background: rgba(0, 0, 0, 0.01) !important;
    border-color: rgba(0, 0, 0, 0.06) !important;
}

body.light-mode #logicExplanation {
    background: rgba(124, 58, 237, 0.01) !important;
    border-color: rgba(124, 58, 237, 0.1) !important;
}

/* Notifications and Gemma History */
body.light-mode .notifications-panel {
    background: #FFFFFF;
    border-left-color: rgba(0, 0, 0, 0.08);
    box-shadow: -10px 0 30px rgba(0,0,0,0.05);
}

body.light-mode .panel-header {
    border-bottom-color: rgba(0, 0, 0, 0.08);
    background: rgba(0, 0, 0, 0.01);
}

body.light-mode .panel-header h3 {
    color: #111827 !important;
}

body.light-mode .history-item {
    background: #FFFFFF !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: var(--shadow-sm);
}

body.light-mode .history-item:hover {
    border-color: rgba(0, 0, 0, 0.18) !important;
}

body.light-mode .history-item h4 {
    color: #111827 !important;
}

body.light-mode .history-timestamp {
    color: var(--text-muted) !important;
}

/* Toast */
body.light-mode .toast-popup {
    background: #FFFFFF;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(16, 185, 129, 0.05);
}

body.light-mode .toast-popup.action-toast {
    background: linear-gradient(135deg, #FFFFFF 0%, #F5F3FF 100%) !important;
    border-color: rgba(139, 92, 246, 0.2) !important;
    box-shadow: var(--shadow-lg), 0 0 30px rgba(139, 92, 246, 0.08) !important;
}

body.light-mode .action-toast-desc {
    color: var(--text-secondary) !important;
}

body.light-mode .toast-btn-dismiss {
    background: rgba(0, 0, 0, 0.02) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    color: var(--text-secondary) !important;
}

body.light-mode .toast-btn-dismiss:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #111827 !important;
}

/* Skill tags & tags */
body.light-mode .skill-tag {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.06);
}

body.light-mode .tag-badge.qualified {
    background: rgba(16, 185, 129, 0.08);
    color: #047857;
    border-color: rgba(16, 185, 129, 0.15);
}

body.light-mode .tag-badge.inter {
    background: rgba(79, 110, 247, 0.08);
    color: #1d4ed8;
    border-color: rgba(79, 110, 247, 0.15);
}

body.light-mode .tag-badge.score {
    background: rgba(245, 158, 11, 0.08);
    color: #b45309;
    border-color: rgba(245, 158, 11, 0.15);
}

body.light-mode .btn-secondary {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
    color: var(--text-secondary);
}

body.light-mode .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.15);
    color: #111827;
}

body.light-mode .candidate-card:hover {
    border-color: rgba(79, 110, 247, 0.25);
}

/* --- Portal Sub-Navbar Styling --- */
.portal-sub-navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 0.375rem;
    margin-bottom: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.portal-sub-links {
    display: flex;
    gap: 0.375rem;
    width: 100%;
    justify-content: space-between;
}

.portal-sub-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    transition: var(--transition-smooth);
    flex: 1;
    text-align: center;
    cursor: pointer;
}

.portal-sub-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.portal-sub-link.active {
    background: var(--primary-glow);
    color: var(--primary);
    box-shadow: inset 0 0 0 1px rgba(79, 110, 247, 0.2);
}

/* Light Mode Overrides */
body.light-mode .portal-sub-navbar {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.06);
}

body.light-mode .portal-sub-link:hover {
    color: #111827;
    background: rgba(0, 0, 0, 0.03);
}

body.light-mode .portal-sub-link.active {
    background: rgba(79, 110, 247, 0.08);
    color: var(--primary);
    box-shadow: inset 0 0 0 1px rgba(79, 110, 247, 0.15);
}

/* Candidate Availability Badges & One-Click Contact Buttons */
.avail-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid transparent;
}

.avail-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.avail-badge.avail-immediate {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.avail-badge.avail-immediate .dot {
    background-color: #10B981;
}

.avail-badge.avail-15days {
    background: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.2);
}
.avail-badge.avail-15days .dot {
    background-color: #F59E0B;
}

.avail-badge.avail-1month {
    background: rgba(249, 115, 22, 0.1);
    color: #F97316;
    border: 1px solid rgba(249, 115, 22, 0.2);
}
.avail-badge.avail-1month .dot {
    background-color: #F97316;
}

.avail-badge.avail-3months {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.avail-badge.avail-3months .dot {
    background-color: #EF4444;
}

/* Light mode adjustments for text colors on availability badges */
body.light-mode .avail-badge.avail-15days {
    color: #D97706;
}
body.light-mode .avail-badge.avail-1month {
    color: #EA580C;
}
body.light-mode .avail-badge.avail-3months {
    color: #DC2626;
}

/* One-Click Contact Buttons */
.btn-whatsapp {
    background: rgba(37, 211, 102, 0.08) !important;
    color: #4ade80 !important;
    border: 1px solid rgba(74, 222, 128, 0.25) !important;
    box-shadow: none !important;
}
.btn-whatsapp:hover {
    background: rgba(37, 211, 102, 0.18) !important;
    border-color: rgba(74, 222, 128, 0.45) !important;
    color: #4ade80 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.15) !important;
}

.btn-email {
    background: rgba(59, 130, 246, 0.08) !important;
    color: #60a5fa !important;
    border: 1px solid rgba(96, 165, 250, 0.25) !important;
    box-shadow: none !important;
}
.btn-email:hover {
    background: rgba(59, 130, 246, 0.18) !important;
    border-color: rgba(96, 165, 250, 0.45) !important;
    color: #60a5fa !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.15) !important;
}

/* Light mode overrides for contact buttons */
body.light-mode .btn-whatsapp {
    background: rgba(37, 211, 102, 0.08) !important;
    color: #166534 !important;
    border: 1px solid rgba(22, 101, 52, 0.25) !important;
}
body.light-mode .btn-whatsapp:hover {
    background: rgba(37, 211, 102, 0.16) !important;
    border-color: rgba(22, 101, 52, 0.45) !important;
    color: #166534 !important;
    box-shadow: 0 4px 12px rgba(22, 101, 52, 0.12) !important;
}

body.light-mode .btn-email {
    background: rgba(59, 130, 246, 0.08) !important;
    color: #1e40af !important;
    border: 1px solid rgba(30, 64, 175, 0.25) !important;
}
body.light-mode .btn-email:hover {
    background: rgba(59, 130, 246, 0.16) !important;
    border-color: rgba(30, 64, 175, 0.45) !important;
    color: #1e40af !important;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.12) !important;
}

/* --- Candidate Profile Selection and Checkboxes --- */
.candidate-select-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    padding-right: 0.25rem;
}

.card-select-label {
    display: block;
    position: relative;
    cursor: pointer;
    width: 22px;
    height: 22px;
}

.card-select-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-card-checkbox {
    position: absolute;
    top: 0;
    left: 0;
    height: 22px;
    width: 22px;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid var(--border-color);
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.card-select-label:hover input ~ .custom-card-checkbox {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.card-select-label input:checked ~ .custom-card-checkbox {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(79, 110, 247, 0.4);
}

.custom-card-checkbox:after {
    content: "";
    position: absolute;
    display: none;
}

.card-select-label input:checked ~ .custom-card-checkbox:after {
    display: block;
}

.card-select-label .custom-card-checkbox:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Saved and Shortlisted Badge Icons next to candidate name */
.status-badge-icon {
    font-size: 0.95rem;
    margin-left: 0.5rem;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

/* --- Floating Bulk Actions Bar --- */
.bulk-actions-bar {
    position: fixed;
    bottom: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 4rem);
    max-width: 1100px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1rem 1.75rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(79, 110, 247, 0.2);
    z-index: 1001;
    transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bulk-actions-bar.active {
    bottom: 2rem;
}

.bulk-actions-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.bulk-selection-info {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.bulk-select-all-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
}

.bulk-select-all-label input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.custom-bulk-checkbox {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--border-color);
    border-radius: 5px;
    display: inline-block;
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    transition: var(--transition-smooth);
}

.bulk-select-all-label input:checked ~ .custom-bulk-checkbox {
    background: var(--primary);
    border-color: var(--primary);
}

.bulk-select-all-label input:checked ~ .custom-bulk-checkbox::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.65rem;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.bulk-selected-count {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-left: 1px solid var(--border-color);
    padding-left: 1.25rem;
}

.bulk-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.bulk-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.6rem 1.1rem;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.bulk-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

#bulkSaveBtn {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.25);
    color: #34d399;
}
#bulkSaveBtn:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}

#bulkExportBtn {
    background: rgba(79, 110, 247, 0.08);
    border-color: rgba(79, 110, 247, 0.25);
    color: #758dfd;
}
#bulkExportBtn:hover {
    background: rgba(79, 110, 247, 0.15);
    border-color: rgba(79, 110, 247, 0.4);
    box-shadow: 0 0 10px rgba(79, 110, 247, 0.15);
}

#bulkOpportunityBtn {
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}
#bulkOpportunityBtn:hover {
    box-shadow: 0 6px 15px rgba(124, 58, 237, 0.45);
}

#bulkShortlistBtn {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.25);
    color: #fbbf24;
}
#bulkShortlistBtn:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.15);
}

.bulk-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 0 0.5rem;
}

.bulk-close-btn:hover {
    color: var(--text-primary);
}

/* Light mode styles for the bulk actions bar */
body.light-mode .bulk-actions-bar {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 20px rgba(79, 110, 247, 0.1);
}
body.light-mode .bulk-selected-count {
    color: #4B5563;
}
body.light-mode .bulk-btn {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #1F2937;
}
body.light-mode .bulk-btn:hover {
    background: rgba(0, 0, 0, 0.06);
}
body.light-mode #bulkSaveBtn {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
    color: #047857;
}
body.light-mode #bulkSaveBtn:hover {
    background: rgba(16, 185, 129, 0.15);
}
body.light-mode #bulkExportBtn {
    background: rgba(79, 110, 247, 0.08);
    border-color: rgba(79, 110, 247, 0.2);
    color: #1e40af;
}
body.light-mode #bulkExportBtn:hover {
    background: rgba(79, 110, 247, 0.15);
}
body.light-mode #bulkShortlistBtn {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.2);
    color: #b45309;
}
body.light-mode #bulkShortlistBtn:hover {
    background: rgba(245, 158, 11, 0.15);
}

/* Card Wishlist Bookmark Icon Button */
.card-save-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-elastic);
    z-index: 10;
}

.card-save-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.3);
    transform: scale(1.1);
}

.card-save-btn.is-saved {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}

body.light-mode .card-save-btn {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
    color: #4B5563;
}

body.light-mode .card-save-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #d97706;
    border-color: rgba(217, 119, 6, 0.3);
}

body.light-mode .card-save-btn.is-saved {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.25);
    color: #d97706;
}

/* Modal Save Button */
#modalSaveBtn.is-saved {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}

body.light-mode #modalSaveBtn.is-saved {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.25);
    color: #d97706;
}

/* Shift actions column slightly down to prevent overlap on small cards */
.candidate-card .cand-actions {
    margin-top: 2.75rem;
}

/* Contact dropdown and split button layout */
.contact-split-group {
    position: relative;
    display: inline-flex;
    width: 100%;
}

.contact-split-group .contact-main-btn {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none !important;
}

.contact-split-group > .btn:only-child {
    border-radius: 10px;
    border-right: 1px solid var(--border-color) !important;
}

.contact-split-group .contact-toggle-btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    padding: 0.65rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
}

.contact-dropdown-menu {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg), 0 0 15px rgba(0, 0, 0, 0.5);
    z-index: 100;
    min-width: 200px;
    padding: 0.5rem;
    flex-direction: column;
    gap: 0.25rem;
}

body.light-mode .contact-dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.1);
}

.contact-dropdown-menu.active {
    display: flex;
}

.contact-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.contact-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

body.light-mode .contact-dropdown-item {
    color: #4B5563;
}

body.light-mode .contact-dropdown-item:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #111827;
}

.contact-dropdown-star {
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.25rem;
    transition: var(--transition-smooth);
}

.contact-dropdown-star:hover {
    color: #fbbf24;
}

.contact-dropdown-star.is-default {
    color: #fbbf24;
}

body.light-mode .contact-dropdown-star.is-default {
    color: #d97706;
}

/* Candidate Highlights Row styling */
.cand-highlights-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 0.5rem;
    width: 100%;
}

.highlights-emoji {
    font-size: 1rem;
    margin-right: 0.25rem;
    display: inline-flex;
    align-items: center;
}

.highlight-tag {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 6px;
    transition: var(--transition-smooth);
}

body.light-mode .highlight-tag {
    background: rgba(217, 119, 6, 0.08);
    border: 1px solid rgba(217, 119, 6, 0.2);
    color: #b45309;
}

.cand-actions-score {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 10px;
    padding: 0.5rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #fbbf24;
    width: 100%;
    margin-bottom: 0.25rem;
}

body.light-mode .cand-actions-score {
    background: rgba(217, 119, 6, 0.08);
    border: 1px solid rgba(217, 119, 6, 0.2);
    color: #b45309;
}

/* --- Autocomplete CA Firms Dropdown --- */
.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0f172a; /* Sleek dark background matching dark-theme inputs */
    border: 1px solid var(--border-color);
    border-radius: 10px;
    max-height: 220px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: var(--shadow-lg), 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    margin-top: 0.35rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

body.light-mode .autocomplete-suggestions {
    background: #ffffff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.08);
}

.suggestion-item {
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.light-mode .suggestion-item {
    color: #4b5563;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.active {
    background: var(--primary-glow);
    color: var(--primary);
    padding-left: 1.25rem;
}

body.light-mode .suggestion-item:hover,
body.light-mode .suggestion-item.active {
    background: rgba(79, 110, 247, 0.08);
    color: var(--primary);
}

/* Scrollbar styling inside suggestions list */
.autocomplete-suggestions::-webkit-scrollbar {
    width: 6px;
}
.autocomplete-suggestions::-webkit-scrollbar-track {
    background: transparent;
}
.autocomplete-suggestions::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
}
body.light-mode .autocomplete-suggestions::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
}

/* --- Custom Checkbox Dropdown styling --- */
.checkbox-dropdown-wrapper {
    position: relative;
    width: 100%;
}

.checkbox-dropdown-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    outline: none;
    font-family: var(--font-body);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    transition: var(--transition-smooth);
}

.checkbox-dropdown-btn:focus-within,
.checkbox-dropdown-btn:hover {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.checkbox-dropdown-btn .btn-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 90%;
}

.checkbox-dropdown-btn .dropdown-arrow {
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: transform 0.2s ease;
}

.checkbox-dropdown-wrapper.open .dropdown-arrow {
    transform: rotate(180deg);
}

.checkbox-dropdown-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0f172a; /* Sleek dark background */
    border: 1px solid var(--border-color);
    border-radius: 10px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1001;
    box-shadow: var(--shadow-lg), 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    margin-top: 0.35rem;
    padding: 0.5rem 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

body.light-mode .checkbox-dropdown-list {
    background: #ffffff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.08);
}

.checkbox-dropdown-wrapper.open .checkbox-dropdown-list {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

body.light-mode .dropdown-item {
    color: #4b5563;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: var(--primary-glow);
    color: var(--text-primary);
}

body.light-mode .dropdown-item:hover {
    background: rgba(79, 110, 247, 0.06);
    color: #111827;
}

/* Custom checkbox inside dropdown item */
.dropdown-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.dropdown-item .custom-checkbox {
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 4px;
    display: inline-block;
    transition: var(--transition-smooth);
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    flex-shrink: 0;
}

body.light-mode .dropdown-item .custom-checkbox {
    border-color: rgba(0, 0, 0, 0.15);
}

.dropdown-item input[type="checkbox"]:checked ~ .custom-checkbox {
    background: var(--primary);
    border-color: var(--primary);
}

.dropdown-item input[type="checkbox"]:checked ~ .custom-checkbox::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.6rem;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.dropdown-item:hover .custom-checkbox {
    border-color: rgba(255, 255, 255, 0.3);
}

body.light-mode .dropdown-item:hover .custom-checkbox {
    border-color: rgba(0, 0, 0, 0.3);
}

/* Scrollbar inside checkbox dropdown lists */
.checkbox-dropdown-list::-webkit-scrollbar {
    width: 6px;
}
.checkbox-dropdown-list::-webkit-scrollbar-track {
    background: transparent;
}
.checkbox-dropdown-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
}
body.light-mode .checkbox-dropdown-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
}




