/* Source: Candidate-styles.css */
/* ===== Global Design System - Candidate Theme (Green/Teal) ===== */

/* 1. Variables & Theme */
:root {
    /* Colors */
    --primary-green: #10B981;
    /* Emerald 500 */
    --primary-green-hover: #059669;
    /* Emerald 600 */
    --secondary-gray: #6B7280;
    --success-green: #10B981;
    --danger-red: #EF4444;
    --warning-yellow: #F59E0B;

    /* Backgrounds */
    --bg-body: #F3F4F6;
    /* Standard Light Gray */
    --bg-white: #FFFFFF;
    --bg-header: #FFFFFF;

    /* Text */
    --text-dark: #1F2937;
    /* Gray 900 */
    --text-secondary: #4B5563;
    /* Gray 600 */
    --text-muted: #9CA3AF;
    /* Gray 400 */

    /* Borders */
    --border-color: #E5E7EB;
    /* Gray 200 */

    /* Spacing & Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 2. Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.premium-body {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    position: relative;
}

.premium-content-area {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.25;
}

a {
    color: var(--primary-green);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-green-hover);
}



/* 3. Layout */
.main-container {
    padding: 30px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    flex: 1;
}

/* 4. Components */

/* Cards */
.card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    gap: 8px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.btn-primary {
    background-color: var(--primary-green);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-green-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-secondary {
    background-color: #000000;
    border: 1px solid #000000;
    color: white;
}

.btn-secondary:hover {
    background-color: #333333;
    border-color: #333333;
}

/* Forms */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-dark);
    background-color: white;
    transition: all 0.2s;
    outline: none;
    font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Navbar (Global) - nav-menu và nav-actions luôn 1 hàng */
.navbar {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 0 30px;
    min-height: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-wrap: nowrap;
    gap: 12px;
    padding-top: 0;
    padding-bottom: 0;
}


.logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-green);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    flex: 1 1 0;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}


.nav-item {
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    height: 100%;
    min-height: 44px;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    flex-shrink: 0;
}

.nav-item:hover {
    color: var(--primary-green);
    background-color: #F9FAFB;
}

.nav-item.active {
    color: var(--primary-green);
    border-bottom-color: var(--primary-green);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 0 0 auto;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .navbar .nav-menu {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding-bottom: 4px;
    }
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    color: var(--text-secondary);
    position: relative;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background-color: var(--bg-body);
    color: var(--primary-green);
}

.language-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.language-btn:hover {
    background-color: var(--bg-body);
    color: var(--primary-green);
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background-color: var(--danger-red);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
    line-height: 1;
}

/* Authentication Layout */
.auth-header {
    background-color: #e0e0e0;
    padding: 15px 40px;
    font-weight: 600;
    font-size: 1.2rem;
    color: #000;
    display: flex;
    align-items: center;
}

.auth-header a {
    color: #000;
    text-decoration: none;
}

.auth-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: #f0f2f5;
}

.login-card {
    background-color: #f0fdf4;
    /* Very light green tint */
    width: 100%;
    max-width: 500px;
    padding: 60px 40px;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.login-card h1,
.login-card h2 {
    font-size: 1.1rem;
    margin-bottom: 30px;
    font-weight: 600;
    color: #333;
}

.login-card .btn {
    width: 100%;
    padding: 15px;
    font-size: 0.9rem;
    margin-top: 10px;
}

.login-card .btn-secondary {
    margin-top: 20px;
}

/* Multi-step form styles */
.step-container {
    display: none;
}

.step-container.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Helper text */
.helper-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.link-green {
    color: var(--primary-green);
    text-decoration: none;
}

/* Source: Candidate-dashboard-styles.css */
/* Candidate Dashboard Specific Styles */

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

/* Welcome Section */
.welcome-section {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    padding: 30px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.welcome-content {
    position: relative;
    z-index: 1;
}

.welcome-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.welcome-subtitle {
    font-size: 16px;
    opacity: 0.9;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background-color: white;
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
}

.stat-trend {
    font-size: 12px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.trend-up {
    color: var(--success-green);
}

/* Job Recommendations */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.job-card {
    background-color: white;
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.job-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-green);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.job-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.company-name {
    font-size: 14px;
    color: var(--text-secondary);
}

.job-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.job-tag {
    background-color: #F3F4F6;
    color: var(--text-secondary);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
}

/* Right Sidebar Widgets */
.widget-card {
    background-color: white;
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.widget-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

/* Event List */
.event-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.event-item:last-child {
    border-bottom: none;
}

.event-date {
    background-color: #ECFDF5;
    color: var(--primary-green);
    padding: 8px;
    border-radius: 6px;
    text-align: center;
    min-width: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.date-day {
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
}

.date-month {
    font-size: 11px;
    text-transform: uppercase;
}

.event-details {
    flex: 1;
}

.event-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.event-time {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Help Center Widget */
.help-widget {
    background-color: #ECFDF5;
    border: 1px solid #A7F3D0;
}

.help-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    color: var(--text-dark);
    font-size: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.help-link:last-child {
    border-bottom: none;
}

.help-link:hover {
    color: var(--primary-green);
}

/* Chart Container */
.chart-container {
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
}

.stat-trend {
    font-size: 12px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.trend-up {
    color: var(--success-green);
}

/* Job Recommendations */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.job-card {
    background-color: white;
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.job-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-green);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.job-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.company-name {
    font-size: 14px;
    color: var(--text-secondary);
}

.job-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.job-tag {
    background-color: #F3F4F6;
    color: var(--text-secondary);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
}

/* Right Sidebar Widgets */
.widget-card {
    background-color: white;
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.widget-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

/* Event List */
.event-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.event-item:last-child {
    border-bottom: none;
}

.event-date {
    background-color: #ECFDF5;
    color: var(--primary-green);
    padding: 8px;
    border-radius: 6px;
    text-align: center;
    min-width: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.date-day {
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
}

.date-month {
    font-size: 11px;
    text-transform: uppercase;
}

.event-details {
    flex: 1;
}

.event-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.event-time {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Help Center Widget */
.help-widget {
    background-color: #ECFDF5;
    border: 1px solid #A7F3D0;
}

.help-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    color: var(--text-dark);
    font-size: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.help-link:last-child {
    border-bottom: none;
}

.help-link:hover {
    color: var(--primary-green);
}

/* Chart Container */
.chart-container {
    height: 200px;
    position: relative;
}

/* Profile Dropdown Styles (Added for Logout) removed - moved to Candidate-styles.css - restored broken keyframes below */

@keyframes fadeInLogout {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* UNIVERSAL LOGOUT DROPDOWN FIX - High Priority */
.profile-wrapper {
    position: relative !important;
    display: inline-block !important;
}

.profile-trigger {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 6px 12px !important;
    border: none !important;
    background: transparent !important;
    cursor: pointer !important;
    border-radius: var(--radius-md, 8px) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--text-dark, #1f2937) !important;
    transition: background-color 0.2s, color 0.2s !important;
}

.profile-trigger:hover {
    background-color: rgba(16, 185, 129, 0.08) !important;
    color: var(--primary-green, #10B981) !important;
}

.profile-avatar {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background-color: #ECFDF5 !important;
    color: var(--primary-green, #10B981) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.profile-name {
    max-width: 140px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.profile-chevron {
    flex-shrink: 0 !important;
    opacity: 0.7 !important;
}

.profile-dropdown {
    position: absolute !important;
    top: 50px !important;
    right: 0 !important;
    width: 200px !important;
    background-color: #ffffff !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid #e5e7eb !important;
    display: none !important;
    z-index: 9999 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
}

.profile-dropdown.show {
    display: flex !important;
    flex-direction: column !important;
}

.profile-menu-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px 16px !important;
    color: #1f2937 !important;
    font-size: 14px !important;
    line-height: normal !important;
    transition: background-color 0.2s !important;
    border-bottom: 1px solid #f3f4f6 !important;
    text-decoration: none !important;
    background: transparent !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.profile-menu-item:last-child {
    border-bottom: none !important;
}

.profile-menu-item:hover {
    background-color: #f9fafb !important;
}

.profile-menu-item.logout-item {
    color: #ef4444 !important;
}

.profile-menu-item.logout-item:hover {
    background-color: #fef2f2 !important;
    color: #dc2626 !important;
}

/* Notification Wrapper and Dropdown Styles */
.notification-wrapper {
    position: relative !important;
    display: inline-block !important;
}

.notification-dropdown {
    position: absolute !important;
    top: 50px !important;
    right: 0 !important;
    width: 360px !important;
    max-width: calc(100vw - 40px) !important;
    min-width: 280px !important;
    background-color: white !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid #e5e7eb !important;
    display: none !important;
    z-index: 10000 !important;
    overflow: hidden !important;
}

@media (max-width: 480px) {
    .notification-dropdown {
        width: calc(100vw - 40px) !important;
        min-width: 0 !important;
        max-width: 360px !important;
    }
}

.notification-dropdown.show {
    display: block !important;
}

.notification-header {
    padding: 16px !important;
    border-bottom: 1px solid #f3f4f6 !important;
}

.notification-header h3 {
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
}

.notification-list {
    max-height: 400px !important;
    overflow-y: auto !important;
}

.notification-dropdown-footer {
    padding: 10px 16px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    background: #f9fafb;
}

.notification-view-all {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-green, #10B981);
    text-decoration: none;
    padding: 6px 0;
    transition: opacity 0.2s;
}

.notification-view-all:hover {
    opacity: 0.9;
    color: var(--primary-green-hover, #059669);
}

.notification-item {
    display: flex !important;
    gap: 12px !important;
    padding: 16px !important;
    border-bottom: 1px solid #f3f4f6 !important;
    transition: background-color 0.2s !important;
}

.notification-item:last-child {
    border-bottom: none !important;
}

.notification-item:hover {
    background-color: #f9fafb !important;
}

.notif-icon {
    flex-shrink: 0 !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #ecfdf5 !important;
    border-radius: 8px !important;
    color: #10b981 !important;
}

.notif-content {
    flex: 1 !important;
}

.notif-message {
    font-size: 14px !important;
    color: #1f2937 !important;
    margin-bottom: 4px !important;
    line-height: 1.4 !important;
}

.notif-meta {
    font-size: 12px !important;
    color: #9ca3af !important;
}

.profile-menu-item svg {
    flex-shrink: 0 !important;
}

@keyframes fadeInLogout {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-dropdown.show {
    animation: fadeInLogout 0.2s ease-in-out !important;
}

/* Responsive Design (Dashboard) */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .right-col {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .welcome-section {
        padding: 20px;
    }

    .welcome-title {
        font-size: 20px;
    }

    .welcome-subtitle {
        font-size: 14px;
    }

    .stat-value {
        font-size: 24px;
    }

    .chart-container {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Warm Dark Theme (body.theme-dark.candidate-dashboard-body) ===== */
body.theme-dark.candidate-dashboard-body {
    background-color: #1e1e1e;
    color: #e0e0e0;
}
body.theme-dark.candidate-dashboard-body h1,
body.theme-dark.candidate-dashboard-body h2,
body.theme-dark.candidate-dashboard-body h3,
body.theme-dark.candidate-dashboard-body h4,
body.theme-dark.candidate-dashboard-body h5,
body.theme-dark.candidate-dashboard-body h6 {
    color: #fff;
}
body.theme-dark.candidate-dashboard-body a { color: #10b981; }
body.theme-dark.candidate-dashboard-body .card {
    background-color: #2a2a2a;
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
body.theme-dark.candidate-dashboard-body .card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
body.theme-dark.candidate-dashboard-body .btn-secondary {
    background-color: #383838;
    border-color: #383838;
    color: #e0e0e0;
}
body.theme-dark.candidate-dashboard-body .btn-secondary:hover {
    background-color: #444;
    border-color: #444;
}
body.theme-dark.candidate-dashboard-body .form-label { color: #e0e0e0; }
body.theme-dark.candidate-dashboard-body .form-input,
body.theme-dark.candidate-dashboard-body .form-select,
body.theme-dark.candidate-dashboard-body .form-textarea {
    background-color: #252525;
    border-color: rgba(255,255,255,0.1);
    color: #e0e0e0;
}
body.theme-dark.candidate-dashboard-body .form-input:focus,
body.theme-dark.candidate-dashboard-body .form-select:focus,
body.theme-dark.candidate-dashboard-body .form-textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
}
body.theme-dark.candidate-dashboard-body .navbar {
    background-color: #252525;
    border-bottom-color: rgba(255,255,255,0.08);
}
body.theme-dark.candidate-dashboard-body .nav-item { color: #999; }
body.theme-dark.candidate-dashboard-body .nav-item:hover {
    color: #10b981;
    background-color: #383838;
}
body.theme-dark.candidate-dashboard-body .nav-item.active { color: #10b981; }
body.theme-dark.candidate-dashboard-body .icon-btn { color: #999; }
body.theme-dark.candidate-dashboard-body .icon-btn:hover {
    background-color: #383838;
    color: #10b981;
}
body.theme-dark.candidate-dashboard-body .language-btn { color: #e0e0e0; }
body.theme-dark.candidate-dashboard-body .language-btn:hover {
    background-color: #383838;
    color: #10b981;
}
body.theme-dark.candidate-dashboard-body .stat-card {
    background-color: #2a2a2a;
    border-color: rgba(255,255,255,0.08);
}
body.theme-dark.candidate-dashboard-body .stat-label { color: #999; }
body.theme-dark.candidate-dashboard-body .stat-value { color: #fff; }
body.theme-dark.candidate-dashboard-body .job-card {
    background-color: #2a2a2a;
    border-color: rgba(255,255,255,0.08);
}
body.theme-dark.candidate-dashboard-body .job-card:hover {
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
body.theme-dark.candidate-dashboard-body .job-title { color: #fff; }
body.theme-dark.candidate-dashboard-body .company-name { color: #999; }
body.theme-dark.candidate-dashboard-body .job-tag {
    background-color: #383838;
    color: #999;
}
body.theme-dark.candidate-dashboard-body .job-footer { color: #777; }
body.theme-dark.candidate-dashboard-body .widget-card {
    background-color: #2a2a2a;
    border-color: rgba(255,255,255,0.08);
}
body.theme-dark.candidate-dashboard-body .widget-title {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.08);
}
body.theme-dark.candidate-dashboard-body .event-item {
    border-bottom-color: rgba(255,255,255,0.08);
}
body.theme-dark.candidate-dashboard-body .event-date {
    background-color: rgba(16,185,129,0.1);
}
body.theme-dark.candidate-dashboard-body .event-title { color: #e0e0e0; }
body.theme-dark.candidate-dashboard-body .event-time { color: #999; }
body.theme-dark.candidate-dashboard-body .help-widget {
    background-color: #2a2a2a;
    border-color: rgba(255,255,255,0.08);
}
body.theme-dark.candidate-dashboard-body .help-link {
    color: #e0e0e0;
    border-bottom-color: rgba(255,255,255,0.08);
}
body.theme-dark.candidate-dashboard-body .help-link:hover { color: #10b981; }
body.theme-dark.candidate-dashboard-body .profile-trigger { color: #e0e0e0 !important; }
body.theme-dark.candidate-dashboard-body .profile-trigger:hover { background-color: rgba(16,185,129,0.08) !important; }
body.theme-dark.candidate-dashboard-body .profile-avatar { background-color: rgba(16,185,129,0.15) !important; }
body.theme-dark.candidate-dashboard-body .profile-dropdown {
    background-color: #2a2a2a !important;
    border-color: rgba(255,255,255,0.08) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5) !important;
}
body.theme-dark.candidate-dashboard-body .profile-menu-item {
    color: #e0e0e0 !important;
    border-bottom-color: rgba(255,255,255,0.08) !important;
}
body.theme-dark.candidate-dashboard-body .profile-menu-item:hover { background-color: #383838 !important; }
body.theme-dark.candidate-dashboard-body .profile-menu-item.logout-item { color: #ef4444 !important; }
body.theme-dark.candidate-dashboard-body .profile-menu-item.logout-item:hover { background-color: rgba(239,68,68,0.1) !important; }
body.theme-dark.candidate-dashboard-body .notification-dropdown {
    background-color: #2a2a2a !important;
    border-color: rgba(255,255,255,0.08) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5) !important;
}
body.theme-dark.candidate-dashboard-body .notification-header { border-bottom-color: rgba(255,255,255,0.08) !important; }
body.theme-dark.candidate-dashboard-body .notification-header h3 { color: #fff !important; }
body.theme-dark.candidate-dashboard-body .notification-item { border-bottom-color: rgba(255,255,255,0.08) !important; }
body.theme-dark.candidate-dashboard-body .notification-item:hover { background-color: #383838 !important; }
body.theme-dark.candidate-dashboard-body .notif-icon { background-color: rgba(16,185,129,0.1) !important; }
body.theme-dark.candidate-dashboard-body .notif-message { color: #e0e0e0 !important; }
body.theme-dark.candidate-dashboard-body .notif-meta { color: #777 !important; }
body.theme-dark.candidate-dashboard-body .notification-dropdown-footer {
    background: #252525;
    border-top-color: rgba(255,255,255,0.08);
}
body.theme-dark.candidate-dashboard-body .auth-header {
    background-color: #252525;
    color: #e0e0e0;
}
body.theme-dark.candidate-dashboard-body .auth-header a { color: #e0e0e0; }
body.theme-dark.candidate-dashboard-body .auth-main { background-color: #1e1e1e; }
body.theme-dark.candidate-dashboard-body .login-card {
    background-color: #2a2a2a;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
body.theme-dark.candidate-dashboard-body .login-card h1,
body.theme-dark.candidate-dashboard-body .login-card h2 { color: #fff; }

/* ═══════════════════════════════════════════════
   cn-nav — 2-row candidate navbar
   ═══════════════════════════════════════════════ */
.cn-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #0C2820;
    box-shadow: 0 2px 12px rgba(0,0,0,.35);
}

/* ── Row 1: brand + controls ── */
.cn-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 18px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    gap: 12px;
}

.cn-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    flex-shrink: 0;
}
.cn-brand-flag { font-size: 1rem; line-height: 1; }
.cn-brand-name {
    font-size: .82rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    white-space: nowrap;
}
.cn-brand-sub {
    font-size: .58rem;
    color: rgba(255,255,255,.38);
    line-height: 1.3;
    white-space: nowrap;
}

.cn-bar-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* Icon buttons in top bar */
.cn-icon-wrap { position: relative; }
.cn-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: rgba(255,255,255,.07);
    color: rgba(255,255,255,.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s;
    position: relative;
}
.cn-icon-btn:hover { background: rgba(255,255,255,.13); color: #fff; }

/* Pill buttons (lang, theme) */
.cn-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.05);
    color: rgba(255,255,255,.75);
    cursor: pointer;
    font-size: .7rem;
    transition: background .15s;
}
.cn-pill-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.cn-pill-btn .lang-flag { width: 14px; height: auto; border-radius: 2px; }

/* User card */
.cn-user-card {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 4px 8px 4px 4px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.05);
    color: #fff;
    cursor: pointer;
    transition: background .15s;
    border: none;
}
.cn-user-card:hover { background: rgba(255,255,255,.10); }
.cn-av {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #10B981;
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.cn-user-info { text-align: left; }
.cn-user-name {
    font-size: .75rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    white-space: nowrap;
}
.cn-user-status {
    font-size: .6rem;
    color: rgba(255,255,255,.45);
    line-height: 1.3;
    white-space: nowrap;
}

/* ── Row 2: tab bar ── */
.cn-tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    background: #0C2820;
    padding: 0 6px;
}
.cn-tabs::-webkit-scrollbar { display: none; }

.cn-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 12px 7px;
    min-width: 76px;
    cursor: pointer;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: background .15s, border-color .15s;
    white-space: nowrap;
    gap: 1px;
    flex-shrink: 0;
}
.cn-tab:hover { background: rgba(255,255,255,.055); }
.cn-tab.active {
    border-bottom-color: #10B981;
    background: rgba(16,185,129,.09);
}
.cn-tab-icon { font-size: .9rem; line-height: 1; margin-bottom: 1px; }
.cn-tab-lbl {
    font-size: .68rem;
    font-weight: 700;
    color: rgba(255,255,255,.78);
    line-height: 1.2;
}
.cn-tab.active .cn-tab-lbl { color: #10B981; }
.cn-tab-sub {
    font-size: .57rem;
    color: rgba(255,255,255,.35);
    line-height: 1.2;
}
.cn-tab.urgent .cn-tab-sub { color: #FCA5A5; }

/* Interview nav dot — pulsing orange indicator */
.cn-tab-icon-wrap { position: relative; display: inline-flex; }
.cn-tab-iv-dot {
    position: absolute;
    top: -3px; right: -5px;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #F59E0B;
    animation: cnIvDotPulse 2s ease-in-out infinite;
    pointer-events: none;
}
@keyframes cnIvDotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .45; transform: scale(.7); }
}

/* light theme overrides */
body.theme-light .cn-nav { background: #134F44; }
body.theme-light .cn-bar { border-bottom-color: rgba(255,255,255,.08); }
body.theme-light .cn-tabs { background: #0E3D34; }

/* ── Language & Theme dropdowns in cn-nav ──
   Override the generic .language-dropdown injected by candidate_dashboard_common.js
   so #lang-dropdown shows all 10 languages (max-height + scroll instead of clip). */
#lang-wrapper { position: relative; }
#lang-dropdown {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    min-width: 150px !important;
    max-height: 340px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background: #1a1a2e !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 28px rgba(0,0,0,.45) !important;
    z-index: 10100 !important;
    margin-top: 6px !important;
    padding: 4px 0 !important;
}
#lang-dropdown.show { display: block !important; }
#lang-dropdown .language-option {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    padding: 9px 14px !important;
    color: rgba(255,255,255,.78) !important;
    font-size: .78rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: background .15s !important;
    white-space: nowrap !important;
}
#lang-dropdown .language-option:hover { background: rgba(16,185,129,.18) !important; color: #10B981 !important; }
#lang-dropdown .language-option.active { background: rgba(16,185,129,.14) !important; color: #10B981 !important; font-weight: 700 !important; }
#lang-dropdown .lang-flag { width: 18px; height: 13px; border-radius: 2px; object-fit: cover; flex-shrink: 0; }
/* scrollbar inside dropdown */
#lang-dropdown::-webkit-scrollbar { width: 4px; }
#lang-dropdown::-webkit-scrollbar-track { background: transparent; }
#lang-dropdown::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 2px; }

/* light theme overrides for lang dropdown */
body.theme-light #lang-dropdown {
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.15) !important;
}
body.theme-light #lang-dropdown .language-option { color: #1f2937 !important; }
body.theme-light #lang-dropdown .language-option:hover { background: #ecfdf5 !important; color: #10B981 !important; }
body.theme-light #lang-dropdown .language-option.active { background: #d1fae5 !important; color: #059669 !important; }
body.theme-light .cn-tab:hover { background: rgba(255,255,255,.07); }
body.theme-light .cn-tab.active { background: rgba(16,185,129,.12); }

/* Override old .navbar styles when cn-nav is used */
.cn-nav .navbar,
nav.cn-nav { height: auto; min-height: 0; padding: 0; background: transparent; border: none; box-shadow: none; }
body.theme-dark.candidate-dashboard-body .helper-text { color: #777; }