/* ===== BASE STYLES FROM premium_theme.css ===== */
:root {
    --primary-gradient: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    --admin-gradient: linear-gradient(135deg, #f43f5e 0%, #fb923c 100%);
    --company-gradient: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
    --candidate-gradient: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);

    --bg-dark: #0f172a;
    --surface-dark: rgba(30, 41, 59, 0.5);
    --surface-light: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);

    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.premium-theme {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    background-attachment: fixed;
}

.glass-panel {
    background: var(--surface-dark);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

.glass-card {
    background: var(--surface-light);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.gradient-text {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.premium-layout {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.premium-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.premium-navbar {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    height: 64px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    flex-shrink: 0;
    z-index: 1000;
}

.nav-links-container {
    display: flex;
    gap: 8px;
}

.nav-link-item {
    white-space: nowrap;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 10px;
    transition: var(--transition);
}

.nav-link-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link-item.active {
    color: #fff;
    background: var(--primary-gradient);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.nav-right-section {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.premium-sidebar {
    width: 280px;
    background: rgba(30, 41, 59, 0.3);
    border-right: 1px solid var(--glass-border);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
}

.sidebar-link-item {
    color: var(--text-muted);
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.sidebar-link-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-link-item.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.premium-content-area {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}

.premium-table-wrapper {
    background: var(--surface-dark);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
    overflow: hidden;
}

.premium-data-table {
    width: 100%;
    border-collapse: collapse;
}

.premium-data-table th {
    text-align: left;
    padding: 16px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 13px;
    border-bottom: 1px solid var(--glass-border);
}

.premium-data-table td {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.premium-form-group {
    margin-bottom: 24px;
}

.premium-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.premium-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 16px;
    color: #fff;
    outline: none;
    transition: var(--transition);
    box-sizing: border-box;
}

.premium-input:focus {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

/* Password visibility toggle – giống change_password: wrap relative, input padding-right, nút absolute đè bên phải */
.password-input-wrap {
    position: relative;
    display: block;
}

.password-input-wrap .premium-input {
    width: 100%;
    padding-right: 44px;
    box-sizing: border-box;
}

.password-toggle-btn {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    border-radius: 0 12px 12px 0;
}

.password-toggle-btn:hover {
    color: var(--text-main);
}

.premium-nav {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.premium-btn {
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-family: inherit;
    font-size: 14px;
}

.premium-btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.premium-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* ===== AUTH SCREEN STYLES ===== */
.auth-body {
    background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.15), transparent 40%),
        radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.15), transparent 40%),
        #0f172a;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    color: var(--text-main);
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
}

.auth-card-premium {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 48px;
    padding-bottom: 56px;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: visible;
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-header h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    background: var(--candidate-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 15px;
}

.auth-actions {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-btn-primary,
.auth-btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 14px;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}

.auth-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #fff;
}

.auth-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.auth-forgot {
    text-align: right;
    margin-top: 4px;
}

.auth-forgot .auth-link {
    font-size: 13px;
}

.auth-footer {
    text-align: center;
    margin-top: 32px;
}

.auth-link {
    color: #10b981;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.auth-link:hover {
    filter: brightness(1.2);
}

.auth-messages {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.auth-error {
    color: #fca5a5;
    font-size: 14px;
    padding: 10px 16px;
    background: rgba(220, 38, 38, 0.15);
    border-radius: 12px;
}

/* Candidate theme for nav (when used elsewhere) */
body.candidate-theme .nav-link-item.active {
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

/* ===== Warm Dark Theme (body.theme-dark.candidate-dashboard-body) ===== */
body.theme-dark.candidate-dashboard-body .auth-body {
    background: radial-gradient(circle at top right, rgba(16,185,129,0.1), transparent 40%),
        radial-gradient(circle at bottom left, rgba(59,130,246,0.1), transparent 40%),
        #1e1e1e;
}
body.theme-dark.candidate-dashboard-body .auth-card-premium {
    background: #2a2a2a;
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}
body.theme-dark.candidate-dashboard-body .auth-header h1 {
    color: #fff;
}
body.theme-dark.candidate-dashboard-body .auth-header p {
    color: #999;
}
body.theme-dark.candidate-dashboard-body .premium-input {
    background: #252525;
    border-color: rgba(255,255,255,0.1);
    color: #e0e0e0;
}
body.theme-dark.candidate-dashboard-body .premium-input:focus {
    border-color: #3b82f6;
    background: #383838;
}
body.theme-dark.candidate-dashboard-body .premium-label {
    color: #999;
}
body.theme-dark.candidate-dashboard-body .auth-btn-secondary {
    background: #383838;
    border-color: rgba(255,255,255,0.1);
    color: #e0e0e0;
}
body.theme-dark.candidate-dashboard-body .auth-btn-secondary:hover {
    background: #444;
    border-color: rgba(255,255,255,0.15);
}
body.theme-dark.candidate-dashboard-body .auth-footer {
    color: #999;
}
body.theme-dark.candidate-dashboard-body .auth-error {
    background: rgba(220,38,38,0.15);
    color: #fca5a5;
}
body.theme-dark.candidate-dashboard-body .password-toggle-btn {
    color: #777;
}
body.theme-dark.candidate-dashboard-body .password-toggle-btn:hover {
    color: #e0e0e0;
}
