/* World-Class Premium Dark SAAS Theme Styling */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;
    
    /* Colors - Luxury Dark Theme */
    --bg-main: #060913;
    --card-bg: rgba(17, 24, 39, 0.65);
    --card-border: rgba(255, 255, 255, 0.08);
    --border-color: rgba(255, 255, 255, 0.1);
    --border-focus: #e5c158; /* champagne gold */
    
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    
    /* Gradients - Luxury Metallic Gold */
    --primary-start: #d4af37;
    --primary-end: #b8963e;
    --primary-hover: #aa7c11;
    --primary-gradient: linear-gradient(135deg, #f5e0a3 0%, #d4af37 50%, #b8963e 100%);
    
    /* Status Colors */
    --color-success: #10b981;
    --color-success-bg: rgba(16, 185, 129, 0.06);
    --color-success-border: rgba(16, 185, 129, 0.15);
    
    --color-error: #ef4444;
    --color-error-bg: rgba(239, 68, 68, 0.06);
    --color-error-border: rgba(239, 68, 68, 0.15);
    
    --color-warning: #f59e0b;
    --color-warning-bg: rgba(245, 158, 11, 0.06);
    --color-warning-border: rgba(245, 158, 11, 0.15);

    /* Shadows & Glows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 8px 10px -6px rgba(0, 0, 0, 0.6);
    
    --glow-primary: 0 4px 20px rgba(212, 175, 55, 0.2);
    --glow-primary-hover: 0 6px 24px rgba(212, 175, 55, 0.35);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #0b0f19;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Background Gradients & Glow Blobs */
.bg-gradient-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background-color: #070a13;
    background-image: 
        radial-gradient(at 0% 0%, rgba(212, 175, 55, 0.08) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(170, 124, 17, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(212, 175, 55, 0.08) 0px, transparent 50%);
}

.bg-gradient-shapes::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.02) 1.2px, transparent 1.2px);
    background-size: 24px 24px;
    opacity: 0.55;
    pointer-events: none;
}

/* Auth Pages Container */
.auth-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    z-index: 1;
}

/* Glassmorphism Auth Card */
.auth-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 100%;
    max-width: 460px;
    padding: 40px;
    box-shadow: var(--shadow-xl);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.auth-card:hover {
    transform: translateY(-2px);
    border-color: rgba(79, 70, 229, 0.25);
    box-shadow: 0 25px 45px -12px rgba(15, 23, 42, 0.08), 0 0 25px rgba(79, 70, 229, 0.03);
}

.auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

.auth-logo-text {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Forms styling */
.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile Input with custom flag dropdown */
.mobile-input-wrapper {
    display: flex;
    gap: 10px;
    position: relative;
}

/* Custom Dropdown Styling */
.custom-select-container {
    position: relative;
    width: 120px;
    flex-shrink: 0;
}

.custom-select-trigger {
    height: 50px;
    padding: 0 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: rgba(17, 24, 39, 0.65);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.custom-select-trigger:hover {
    border-color: rgba(212, 175, 55, 0.35);
    background: rgba(255, 255, 255, 0.05);
}

.custom-select-trigger.active {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
    background: rgba(17, 24, 39, 0.85);
}

.selected-flag {
    width: 22px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    margin-right: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.selected-code {
    color: var(--text-primary);
    font-weight: 600;
}

.caret-icon {
    font-size: 10px;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.custom-select-trigger.active .caret-icon {
    transform: rotate(180deg);
}

.custom-options-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 290px;
    max-height: 260px;
    background: #0f1525;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: var(--shadow-xl), 0 0 20px rgba(212, 175, 55, 0.08);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: scaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-5px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.options-search-wrapper {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 21, 37, 0.8);
}

.options-search-input {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-family: var(--font-primary);
    outline: none;
    transition: border-color 0.2s;
}

.options-search-input:focus {
    border-color: var(--border-focus);
}

.options-list {
    overflow-y: auto;
    list-style: none;
    max-height: 200px;
}

.option-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.15s, color 0.15s;
    color: var(--text-secondary);
}

.option-item:hover {
    background: rgba(212, 175, 55, 0.08);
    color: var(--text-primary);
}

.option-item img {
    width: 22px;
    height: 15px;
    object-fit: cover;
    margin-right: 12px;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.option-item .country-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.option-item .isd-code {
    font-weight: 600;
    color: var(--primary-start);
    margin-left: 8px;
}

/* Mobile input box */
.mobile-text-input {
    flex: 1;
    height: 50px;
    padding: 0 18px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 15px;
    background: rgba(17, 24, 39, 0.65);
    color: var(--text-primary);
    font-family: var(--font-primary);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.mobile-text-input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

/* Custom Checkbox */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-top: 24px;
    margin-bottom: 28px;
}

.checkbox-container {
    display: block;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
    user-select: none;
    line-height: 1.6;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 3px;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: rgba(17, 24, 39, 0.65);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: rgba(212, 175, 55, 0.3);
}

.checkbox-container input:checked ~ .checkmark {
    background: var(--primary-gradient);
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.25);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

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

.checkbox-container a {
    color: var(--primary-start);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.checkbox-container a:hover {
    color: var(--primary-end);
    text-decoration: underline;
}

/* Standard Inputs */
.text-input {
    width: 100%;
    height: 50px;
    padding: 0 18px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 15px;
    background: rgba(17, 24, 39, 0.65);
    color: var(--text-primary);
    font-family: var(--font-primary);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.text-input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.select-input {
    width: 100%;
    height: 50px;
    padding: 0 18px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 15px;
    font-family: var(--font-primary);
    outline: none;
    background: rgba(17, 24, 39, 0.65);
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.select-input option {
    background: #0f1525;
    color: var(--text-primary);
}

.select-input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.textarea-input {
    width: 100%;
    min-height: 110px;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 15px;
    font-family: var(--font-primary);
    background: rgba(17, 24, 39, 0.65);
    color: var(--text-primary);
    outline: none;
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.textarea-input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--glow-primary);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-primary-hover);
    opacity: 0.95;
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-primary:disabled {
    background: var(--text-muted);
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.5;
}

/* OTP Screens container */
.step-container {
    display: none;
    animation: fadeSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.step-container.active {
    display: block;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Digit entry boxes for OTP */
.otp-digit-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 32px 0;
}

.otp-digit-input {
    width: 52px;
    height: 58px;
    text-align: center;
    font-size: 26px;
    font-weight: 800;
    color: #1b2e5e;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    outline: none;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s, background 0.2s;
}

.otp-digit-input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
    transform: scale(1.05);
}

/* OTP details */
.otp-send-info {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 10px;
    line-height: 1.5;
}

.otp-send-info strong {
    color: var(--primary-start);
}

.otp-timer-text {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 28px;
}

.otp-timer-count {
    color: var(--text-primary);
    font-weight: 700;
}

.btn-resend-otp {
    background: none;
    border: none;
    color: var(--primary-start);
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 13px;
    transition: color 0.2s;
}

.btn-resend-otp:hover:not(:disabled) {
    color: var(--primary-end);
}

.btn-resend-otp:disabled {
    color: var(--text-muted);
    cursor: not-allowed;
}

.btn-back-step {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    width: 100%;
    transition: color 0.2s;
}

.btn-back-step:hover {
    color: var(--text-primary);
}

.footer-link {
    text-align: center;
    margin-top: 28px;
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-link a {
    color: var(--primary-start);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.footer-link a:hover {
    color: var(--primary-end);
    text-decoration: underline;
}

/* Toast System */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    width: calc(100% - 48px);
}

.toast {
    background: rgba(15, 23, 42, 0.95); /* Deep slate-blue dark background */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 4px solid var(--text-muted);
    box-shadow: var(--shadow-xl), 0 10px 30px rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.toast-error {
    border-left-color: var(--color-error);
    border-right: 1px solid rgba(239, 68, 68, 0.15);
    border-top: 1px solid rgba(239, 68, 68, 0.15);
    border-bottom: 1px solid rgba(239, 68, 68, 0.15);
    box-shadow: var(--shadow-xl), 0 0 15px rgba(239, 68, 68, 0.05);
}

.toast.toast-success {
    border-left-color: var(--color-success);
    border-right: 1px solid rgba(16, 185, 129, 0.15);
    border-top: 1px solid rgba(16, 185, 129, 0.15);
    border-bottom: 1px solid rgba(16, 185, 129, 0.15);
    box-shadow: var(--shadow-xl), 0 0 15px rgba(16, 185, 129, 0.05);
}

.toast.toast-warning {
    border-left-color: var(--color-warning);
    border-right: 1px solid rgba(245, 158, 11, 0.15);
    border-top: 1px solid rgba(245, 158, 11, 0.15);
    border-bottom: 1px solid rgba(245, 158, 11, 0.15);
    box-shadow: var(--shadow-xl), 0 0 15px rgba(245, 158, 11, 0.05);
}

.toast-message {
    font-size: 13px;
    color: #cbd5e1; /* Clear readability light slate */
    line-height: 1.5;
    flex: 1;
}

.toast-title {
    font-weight: 700;
    color: #f8fafc; /* High contrast white */
    margin-bottom: 6px;
    font-family: var(--font-display);
    font-size: 14px;
}

.toast-close {
    cursor: pointer;
    color: #94a3b8;
    font-size: 20px;
    border: none;
    background: none;
    line-height: 1;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #f8fafc;
}

/* Mock OTP Popup */
.mock-otp-popup {
    background: rgba(15, 23, 42, 0.95); /* Deep slate-blue dark background */
    color: var(--text-primary);
    border-radius: 16px;
    padding: 20px;
    position: fixed;
    bottom: 24px;
    left: 24px;
    box-shadow: var(--shadow-xl), 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.1);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 360px;
    border: 1px solid rgba(212, 175, 55, 0.25); /* Gold tinted border */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: mockIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes mockIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mock-title {
    color: #10b981; /* bright success green */
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: var(--font-display);
}

.mock-text {
    font-size: 13px;
    color: #cbd5e1; /* light slate text */
    line-height: 1.6;
}

.mock-text strong {
    color: #f8fafc; /* high contrast white for phone number */
}

.mock-otp-code {
    background: rgba(212, 175, 55, 0.12); /* darker tint background */
    color: #f5e0a3; /* bright metallic gold */
    padding: 8px 16px;
    border-radius: 8px;
    font-family: 'Outfit', monospace;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: 4px;
    display: inline-block;
    margin-top: 10px;
    border: 1px solid rgba(212, 175, 55, 0.35); /* higher contrast border */
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.2);
}


/* Dashboard UI Layout */
.dashboard-header {
    background: rgba(11, 15, 25, 0.85);
    border-bottom: 1px solid var(--border-color);
    padding: 18px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.dashboard-user-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    font-family: var(--font-display);
    box-shadow: var(--glow-primary);
}

.user-details h3 {
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--text-primary);
}

.user-details p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.btn-secondary {
    padding: 10px 18px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    font-family: var(--font-primary);
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-color: var(--border-focus);
}

.dashboard-container {
    max-width: 1200px;
    width: 100%;
    margin: 40px auto;
    padding: 0 24px;
    flex: 1;
}

/* Redesigned Cards */
.dashboard-card {
    background: var(--card-bg) !important;
    padding: 32px;
    border: 1px solid var(--border-color) !important;
    border-radius: 16px !important;
    box-shadow: var(--shadow-lg) !important;
    margin-bottom: 40px !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color 0.3s ease;
}

.dashboard-card:hover {
    border-color: rgba(79, 70, 229, 0.25);
}

.welcome-banner {
    background: var(--primary-gradient);
    color: #ffffff;
    border-radius: 16px;
    padding: 36px 40px;
    margin-bottom: 36px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: none;
}

.welcome-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    filter: blur(40px);
}

.welcome-banner h1 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

.welcome-banner p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    max-width: 700px;
    line-height: 1.6;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 36px;
}

.stat-card {
    background: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 16px;
    padding: 26px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(124, 58, 237, 0.2);
    box-shadow: var(--shadow-lg);
}

.stat-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
    font-family: var(--font-display);
}

.stat-value {
    font-size: 30px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-family: var(--font-display);
    letter-spacing: -0.5px;
}

.stat-desc {
    font-size: 12px;
    color: var(--text-muted);
}

/* Admin Sidebar Dashboard Layout */
.admin-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.admin-sidebar {
    width: 270px;
    background: rgba(15, 21, 37, 0.95);
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    border-right: 1px solid var(--border-color);
    position: relative;
    z-index: 10;
}

.admin-sidebar-header {
    padding: 26px 24px;
    font-weight: 800;
    font-size: 20px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
}

.admin-sidebar-menu {
    list-style: none;
    padding: 24px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.admin-menu-item {
    padding: 12px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--text-secondary);
    border: 1px solid transparent;
}

.admin-menu-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--border-focus);
}

.admin-menu-item.active {
    background: rgba(212, 175, 55, 0.08);
    color: var(--border-focus);
    border-color: rgba(212, 175, 55, 0.15);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.05);
    position: relative;
}

.admin-menu-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 3px;
    background: var(--primary-gradient);
    border-radius: 0 4px 4px 0;
}

.admin-main-content {
    flex: 1;
    background: var(--bg-main);
    padding: 40px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* Toggle Switch Styling */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e2e8f0;
    transition: .3s;
    border-radius: 24px;
    border: 1px solid #cbd5e1;
}

.slider:hover {
    border-color: #94a3b8;
    background-color: #cbd5e1;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

input:checked + .slider {
    background: var(--primary-gradient);
    border-color: transparent;
}

input:checked + .slider:before {
    transform: translateX(22px);
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

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

.modal-card {
    background: #0f1525;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    width: 100%;
    max-width: 680px;
    box-shadow: var(--shadow-xl), 0 0 30px rgba(212, 175, 55, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 22px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-display);
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
    transition: color 0.2s;
}

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

.modal-body {
    padding: 28px;
    max-height: 65vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 18px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 21, 37, 0.8);
    display: flex;
    justify-content: flex-end;
    gap: 14px;
}

/* Action buttons inside lists */
.btn-action-group {
    display: flex;
    gap: 8px;
}

.btn-action {
    padding: 7px 14px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-family: var(--font-primary);
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-action.edit:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-focus);
    color: var(--text-primary);
}

.btn-action.delete {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.btn-action.delete:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.35);
    color: #dc2626;
}

.btn-action.log {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.btn-action.log:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.35);
    color: #059669;
}

/* Candidate Assessment runner page */
.assessment-question-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.assessment-question-card:hover {
    border-color: rgba(212, 175, 55, 0.2);
    box-shadow: var(--shadow-md);
}

.assessment-question-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.assessment-dimension-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 18px;
    border: 1px solid var(--border-color);
}

.options-flex {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
}

.option-box {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(17, 24, 39, 0.65);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.option-box input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.option-box:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(212, 175, 55, 0.35);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.option-box.selected {
    background: rgba(212, 175, 55, 0.08);
    border-color: var(--primary-start);
    color: var(--primary-start);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15);
}

/* Tab contents and general styling */
.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
}

.search-input-wrapper {
    position: relative;
    max-width: 340px;
    width: 100%;
}

.search-input {
    width: 100%;
    height: 42px;
    padding: 0 18px 0 42px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    font-family: var(--font-primary);
    background: rgba(17, 24, 39, 0.65);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 15px;
}

.table-wrapper {
    background: rgba(17, 24, 39, 0.65) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: var(--shadow-md) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.data-table th {
    background: rgba(15, 21, 37, 0.8);
    padding: 16px 22px;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-display);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    vertical-align: middle;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Flag inside tables */
.table-flag {
    width: 22px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    margin-right: 10px;
    vertical-align: middle;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid transparent;
}

.status-badge.success {
    background: var(--color-success-bg);
    color: var(--color-success);
    border-color: var(--color-success-border);
}

.status-badge.terminated {
    background: var(--color-error-bg);
    color: var(--color-error);
    border-color: var(--color-error-border);
}

.status-badge.failed {
    background: var(--color-warning-bg);
    color: var(--color-warning);
    border-color: var(--color-warning-border);
}

.status-badge.logout {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border-color: var(--border-color);
}

.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-secondary);
}

.empty-state p {
    font-size: 15px;
    margin-bottom: 10px;
}

/* Log viewer table styling inside modal */
.log-timeline-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.log-timeline-table th {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    background: rgba(15, 21, 37, 0.8);
}

.log-timeline-table td {
    padding: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    vertical-align: top;
    color: var(--text-secondary);
}

.log-action-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.log-action-badge.created { background: rgba(16, 185, 129, 0.1); color: #059669; }
.log-action-badge.updated { background: rgba(59, 130, 246, 0.1); color: #2563eb; }
.log-action-badge.status_toggled { background: rgba(245, 158, 11, 0.1); color: #d97706; }
.log-action-badge.deleted { background: rgba(239, 68, 68, 0.1); color: #dc2626; }

/* Autocomplete search results hover styling */
.inst-autocomplete-option {
    padding: 12px 18px;
    font-size: 13px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.15s, color 0.15s;
    color: var(--text-secondary);
}

.inst-autocomplete-option:hover {
    background: rgba(212, 175, 55, 0.08);
    color: var(--text-primary);
}

/* Question Selector Checkbox styling in Exam Editor */
.question-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    border: 1px solid transparent;
    user-select: none;
    color: var(--text-secondary);
}

.question-checkbox-label:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(212, 175, 55, 0.3);
    color: var(--text-primary);
}

.question-checkbox-label input[type="checkbox"] {
    margin-top: 4px;
    cursor: pointer;
}

/* Overriding any hardcoded inline styling styles */
[style*="background: white"], [style*="background:white"] {
    background: var(--card-bg) !important;
}
[style*="background: #f8fafc"], [style*="background:#f8fafc"] {
    background: var(--bg-main) !important;
}
[style*="background:#fef2f2"], [style*="background: #fef2f2"] {
    background: var(--color-error-bg) !important;
    border-color: var(--color-error-border) !important;
}
[style*="background: #0f172a"] {
    background: var(--bg-main) !important;
}
[style*="background:#e0f2fe"] {
    background: var(--color-success-bg) !important;
    border-color: var(--color-success-border) !important;
    color: var(--color-success) !important;
}
[style*="background:#fef2f2"] {
    background: var(--color-error-bg) !important;
    border-color: var(--color-error-border) !important;
    color: var(--color-error) !important;
}
[style*="color:#991b1b"] {
    color: var(--color-error) !important;
}
[style*="color:#0369a1"] {
    color: var(--color-success) !important;
}
[style*="border-bottom:1px solid #e2e8f0"] {
    border-bottom: 1px solid var(--border-color) !important;
}
[style*="border-top: 1px solid #1e293b"] {
    border-top: 1px solid var(--border-color) !important;
}
[style*="color: #cbd5e1"] {
    color: var(--text-secondary) !important;
}
[style*="color: #64748b"] {
    color: var(--text-muted) !important;
}
[style*="color:var(--primary-start)"] {
    color: var(--primary-start) !important;
}
[style*="color: var(--primary-start)"] {
    color: var(--primary-start) !important;
}
[style*="background: #f1f5f9"] {
    background: rgba(255, 255, 255, 0.04) !important;
}
[style*="background:#f1f5f9"] {
    background: rgba(255, 255, 255, 0.04) !important;
}

/* Quill Editor Light Theme Overrides */
.ql-toolbar.ql-snow {
    background: rgba(15, 21, 37, 0.8) !important;
    border: 1px solid var(--border-color) !important;
    border-bottom: none !important;
    border-radius: 10px 10px 0 0 !important;
}
.ql-container.ql-snow {
    background: rgba(17, 24, 39, 0.65) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 0 0 10px 10px !important;
    color: var(--text-primary) !important;
    font-family: var(--font-primary) !important;
    font-size: 14px !important;
}
.ql-snow .ql-stroke {
    stroke: var(--text-secondary) !important;
}
.ql-snow .ql-fill {
    fill: var(--text-secondary) !important;
}
.ql-snow .ql-picker {
    color: var(--text-secondary) !important;
}
.ql-snow .ql-picker-options {
    background-color: #0f1525 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: var(--shadow-lg) !important;
}
.ql-snow .ql-picker-item:hover {
    color: var(--text-primary) !important;
    background: rgba(212, 175, 55, 0.08) !important;
}
#quill-editor {
    background: transparent !important;
}

/* Application Main Footer Styling */
.app-main-footer {
    width: 100%;
    margin-top: auto;
    background: rgba(10, 14, 26, 0.95);
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 13px;
    position: relative;
    z-index: 10;
}

.app-main-footer .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 20px 24px;
}

.app-main-footer .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 32px;
    margin-bottom: 32px;
}

@media (max-width: 900px) {
    .app-main-footer .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 580px) {
    .app-main-footer .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.app-main-footer .footer-col-brand .footer-brand-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 12px;
    font-family: var(--font-display);
}

.app-main-footer .footer-brand-desc {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
    font-size: 13px;
}

.app-main-footer .footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.app-main-footer .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 13px;
}

.app-main-footer .contact-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.app-main-footer .contact-item a:hover {
    color: var(--primary-start);
}

.app-main-footer .contact-icon {
    color: var(--primary-start);
    font-size: 14px;
    line-height: 1;
    margin-top: 2px;
}

.app-main-footer .footer-heading {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 8px;
}

.app-main-footer .footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--primary-start);
    border-radius: 1px;
}

.app-main-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.app-main-footer .footer-links li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.app-main-footer .footer-links li a:hover {
    color: var(--primary-start);
    transform: translateX(3px);
}

.app-main-footer .footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
}

.app-main-footer .footer-bottom a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.app-main-footer .footer-bottom a:hover {
    color: var(--primary-start);
}

