/* Aique – Design Tokens & Design System */

:root {
    /* Fonts */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Borders */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --bg-primary: #0a0b10;
    --bg-secondary: #12131a;
    --bg-tertiary: #1a1c26;
    --bg-glass: rgba(18, 19, 26, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: rgba(99, 102, 241, 0.15);
    --primary-glow: rgba(99, 102, 241, 0.4);
    
    --success-color: #10b981;
    --success-light: rgba(16, 185, 129, 0.15);
    --warning-color: #f59e0b;
    --warning-light: rgba(245, 158, 11, 0.15);
    --danger-color: #ef4444;
    --danger-light: rgba(239, 68, 68, 0.15);
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.4);
    
    --scrollbar-track: #0f1015;
    --scrollbar-thumb: #2d3142;
    --scrollbar-thumb-hover: #3e445e;
}

/* Light Theme Variables */
[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-glass: rgba(255, 255, 255, 0.8);
    --border-color: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --primary-color: #4f46e5;
    --primary-hover: #3730a3;
    --primary-light: rgba(79, 70, 229, 0.1);
    --primary-glow: rgba(79, 70, 229, 0.2);
    
    --success-color: #059669;
    --success-light: rgba(5, 150, 105, 0.1);
    --warning-color: #d97706;
    --warning-light: rgba(217, 119, 6, 0.1);
    --danger-color: #dc2626;
    --danger-light: rgba(220, 38, 38, 0.1);
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.08);
    
    --scrollbar-track: #f1f5f9;
    --scrollbar-thumb: #cbd5e1;
    --scrollbar-thumb-hover: #94a3b8;
}

/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.5;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-hover);
}

button {
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    outline: none;
    transition: all var(--transition-fast);
}

input, select, textarea {
    font-family: var(--font-body);
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    outline: none;
    width: 100%;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

input::placeholder, textarea::placeholder {
    color: var(--text-muted);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}
::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

/* Main Layout Shell */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* App Loader */
.initial-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100vw;
    background-color: var(--bg-primary);
}
.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

/* Base Layout Structure */
.layout-wrapper {
    display: flex;
    flex: 1;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar Styling */
.sidebar {
    width: 260px;
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 10;
    transition: transform var(--transition-normal);
}

.sidebar-brand {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.brand-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary-color), #818cf8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 20px;
    font-family: var(--font-heading);
}

.brand-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-menu {
    flex: 1;
    padding: 20px 12px;
    list-style: none;
    overflow-y: auto;
}

.menu-item {
    margin-bottom: 4px;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.menu-link:hover, .menu-link.active {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.menu-link i, .menu-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
}

.user-profile-badge {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background-color: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border: 1px solid var(--border-color);
}

.user-details {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.user-role-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
}

/* Content Container Layout */
.main-layout {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.main-header {
    height: 70px;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    z-index: 9;
}

.header-search {
    position: relative;
    max-width: 320px;
    width: 100%;
}

.header-search i, .header-search svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    width: 18px;
    height: 18px;
}

.header-search input {
    padding-left: 38px;
    background-color: var(--bg-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle-btn, .notification-bell-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.theme-toggle-btn:hover, .notification-bell-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.role-switcher-dropdown {
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    color: var(--text-primary);
}

.content-body {
    flex: 1;
    overflow-y: auto;
    padding: 28px;
    background-color: var(--bg-primary);
}

/* Premium Card Styles */
.card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.card-title {
    font-size: 18px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Grid helper layouts */
.grid-cols-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.grid-cols-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.col-span-8 { grid-column: span 8; }
.col-span-6 { grid-column: span 6; }
.col-span-4 { grid-column: span 4; }
.col-span-3 { grid-column: span 3; }
.col-span-2 { grid-column: span 2; }

/* Stat Widgets */
.stat-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-val {
    font-size: 28px;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-top: 4px;
    line-height: 1;
}

.stat-change {
    font-size: 12px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-change.up { color: var(--success-color); }
.stat-change.down { color: var(--danger-color); }

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background-color: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon-wrapper.success {
    background-color: var(--success-light);
    color: var(--success-color);
}
.stat-icon-wrapper.warning {
    background-color: var(--warning-light);
    color: var(--warning-color);
}
.stat-icon-wrapper.danger {
    background-color: var(--danger-light);
    color: var(--danger-color);
}

/* Premium Buttons */
.btn {
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    white-space: nowrap;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.btn-secondary {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-primary);
    border-color: var(--text-muted);
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}
.btn-success:hover {
    opacity: 0.9;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}
.btn-danger:hover {
    opacity: 0.9;
}

.btn-link {
    background: none;
    color: var(--primary-color);
    padding: 0;
    font-weight: 500;
}
.btn-link:hover {
    text-decoration: underline;
}

/* Badges */
.badge {
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    width: fit-content;
    text-transform: uppercase;
}

.badge-primary { background-color: var(--primary-light); color: var(--primary-color); }
.badge-success { background-color: var(--success-light); color: var(--success-color); }
.badge-warning { background-color: var(--warning-light); color: var(--warning-color); }
.badge-danger { background-color: var(--danger-light); color: var(--danger-color); }

/* Tables & Lists */
.table-container {
    width: 100%;
    overflow-x: auto;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.custom-table th {
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
    background-color: var(--bg-tertiary);
}

.custom-table td {
    padding: 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

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

/* Form Styles helper */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

/* Modals & Dialogs */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.modal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
    max-width: 600px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform var(--transition-normal);
}

.modal-backdrop.open .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-close {
    background: none;
    font-size: 20px;
    color: var(--text-muted);
}
.modal-close:hover {
    color: var(--text-primary);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

/* Candidate Portal Access Screen */
.portal-access-card {
    max-width: 500px;
    width: 90%;
    margin: 60px auto;
}

.registration-mode-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    background: none;
    padding: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    text-align: center;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast);
}

.tab-btn.active {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Compatibility Check Visuals */
.compatibility-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 20px 0;
}

.compat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.compat-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.compat-status {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.compat-status.pass { background-color: var(--success-light); color: var(--success-color); }
.compat-status.fail { background-color: var(--danger-light); color: var(--danger-color); }
.compat-status.checking { background-color: var(--warning-light); color: var(--warning-color); animation: pulse 1.5s infinite; }

.camera-preview-container {
    width: 100%;
    max-height: 220px;
    background-color: #000;
    border-radius: var(--radius-md);
    margin-top: 14px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.camera-preview-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-placeholder {
    position: absolute;
    color: var(--text-muted);
    text-align: center;
}

/* Assessment Instructions */
.instruction-panel {
    max-width: 800px;
    margin: 0 auto;
}

.instruction-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 20px 0;
}

.instruction-card {
    padding: 16px;
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

/* Assessment Engine Workspace */
.assessment-wrapper {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: var(--bg-primary);
}

.assessment-header {
    height: 64px;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.assessment-title-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.timer-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
}

.timer-box.warning-timer {
    background-color: var(--danger-light);
    color: var(--danger-color);
    animation: pulse 1s infinite;
}

.assessment-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.assessment-left-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px;
    overflow-y: auto;
    border-right: 1px solid var(--border-color);
}

.question-card {
    margin-bottom: 24px;
}

.question-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.question-number {
    font-size: 18px;
    font-weight: 700;
}

.question-weight {
    color: var(--text-muted);
    font-size: 14px;
}

.question-text {
    font-size: 16px;
    margin-bottom: 24px;
    font-weight: 500;
    color: var(--text-primary);
}

.option-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.option-item:hover {
    border-color: var(--primary-color);
    background-color: var(--bg-tertiary);
}

.option-item.selected {
    background-color: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

.option-circle {
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.option-item.selected .option-circle {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
}

.option-bullet {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background-color: white;
}

/* Coding Area Sandbox */
.code-editor-sandbox {
    margin-top: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.editor-header {
    background-color: var(--bg-tertiary);
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.editor-lang {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.code-textarea {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    background-color: #0c0d12;
    color: #e2e8f0;
    border: none;
    resize: vertical;
    min-height: 250px;
    padding: 16px;
    line-height: 1.6;
}

.code-textarea:focus {
    box-shadow: none;
}

/* Right Navigation Palette */
.assessment-right-panel {
    width: 320px;
    background-color: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    padding: 24px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.palette-section {
    margin-bottom: 24px;
}

.palette-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.palette-btn {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.palette-btn.active {
    outline: 2px solid var(--primary-color);
}

.palette-btn.answered {
    background-color: var(--success-color);
    color: white;
    border-color: var(--success-color);
}

.palette-btn.flagged {
    background-color: var(--warning-color);
    color: white;
    border-color: var(--warning-color);
}

.palette-btn.visited:not(.answered):not(.flagged) {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.palette-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

/* Proctoring Webcam Monitor Widget */
.proctor-monitor-widget {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-top: auto;
    position: relative;
}

.proctor-webcam-feed {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: var(--radius-sm);
    background-color: #000;
    overflow: hidden;
    position: relative;
}

.proctor-webcam-feed video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.proctor-status-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 11px;
    font-weight: 500;
    text-align: center;
}

.proctor-status-overlay.violation {
    background-color: var(--danger-color);
}

/* Fullscreen Blocker Overlay */
.fullscreen-blocker {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(10, 11, 16, 0.98);
    backdrop-filter: blur(12px);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
}

/* Notification Popups */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10000;
}

.toast {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 320px;
    transform: translateX(120%);
    transition: transform var(--transition-normal);
}

.toast.show {
    transform: translateX(0);
}

.toast i {
    font-size: 20px;
}

.toast-success { border-left: 4px solid var(--success-color); }
.toast-success i { color: var(--success-color); }

.toast-error { border-left: 4px solid var(--danger-color); }
.toast-error i { color: var(--danger-color); }

.toast-info { border-left: 4px solid var(--primary-color); }
.toast-info i { color: var(--primary-color); }

/* SVG Charts Layout */
.chart-container {
    width: 100%;
    height: 240px;
    position: relative;
    margin-top: 14px;
}

.svg-chart {
    width: 100%;
    height: 100%;
}

.chart-grid-line {
    stroke: var(--border-color);
    stroke-width: 1;
}

.chart-line {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chart-line-gradient {
    fill: url(#chart-gradient);
    opacity: 0.1;
}

.chart-bar {
    fill: var(--primary-color);
    rx: 4;
}

.chart-bar.secondary {
    fill: var(--success-color);
}

.chart-label {
    fill: var(--text-secondary);
    font-size: 11px;
    font-family: var(--font-body);
}

.chart-value-label {
    fill: var(--text-primary);
    font-size: 11px;
    font-weight: 600;
}

/* Assessment Drag Drop Mock builder */
.builder-sections-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 20px 0;
}

.builder-section-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.section-card-header {
    background-color: var(--bg-tertiary);
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.section-card-body {
    padding: 20px;
}

.builder-questions-pool {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.pool-question-item {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Proctoring Violation Feed log */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    padding-left: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 5px;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: -20px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background-color: var(--text-muted);
    border: 2px solid var(--bg-secondary);
}

.timeline-dot.danger { background-color: var(--danger-color); }
.timeline-dot.warning { background-color: var(--warning-color); }
.timeline-dot.info { background-color: var(--primary-color); }

.timeline-content {
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    border: 1px solid var(--border-color);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-weight: 500;
}

.timeline-text {
    font-size: 13px;
    color: var(--text-primary);
}

/* Recruiter Compare Candidate Grid */
.candidate-compare-grid {
    display: grid;
    grid-template-columns: 240px 1fr 1fr;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-secondary);
    overflow: hidden;
}

.compare-row {
    display: contents;
}

.compare-cell {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

.compare-cell.header-cell {
    background-color: var(--bg-tertiary);
    font-weight: 700;
}

.compare-row:last-child .compare-cell {
    border-bottom: none;
}

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

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .col-span-8 { grid-column: span 12; }
    .col-span-4 { grid-column: span 12; }
}

@media (max-width: 768px) {
    .layout-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .sidebar-menu {
        display: flex;
        overflow-x: auto;
        padding: 10px;
    }
    
    .menu-item {
        margin-bottom: 0;
        margin-right: 8px;
    }
    
    .menu-link {
        padding: 8px 12px;
        white-space: nowrap;
    }
    
    .sidebar-footer {
        display: none;
    }
    
    .main-header {
        padding: 0 16px;
    }
    
    .grid-cols-3 { grid-template-columns: 1fr; }
    .grid-cols-2 { grid-template-columns: 1fr; }
    
    .assessment-body {
        flex-direction: column;
    }
    
    .assessment-right-panel {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--border-color);
    }
}

/* ==========================================================================
   Liquid Glass UI System – Candidate Portal & Proctored Workspace
   ========================================================================== */

/* Animated Fluid Liquid Background Container */
.liquid-glass-bg-wrapper {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.liquid-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    animation: liquidFlow 18s ease-in-out infinite alternate;
}

.liquid-blob-1 {
    top: -10%;
    left: -10%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, var(--primary-color) 0%, rgba(99, 102, 241, 0) 70%);
}

.liquid-blob-2 {
    bottom: -15%;
    right: -10%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, #06b6d4 0%, rgba(6, 182, 212, 0) 70%);
    animation-delay: -5s;
}

.liquid-blob-3 {
    top: 35%;
    right: 25%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #ec4899 0%, rgba(236, 72, 153, 0) 70%);
    animation-delay: -10s;
}

@keyframes liquidFlow {
    0% {
        transform: translate(0px, 0px) scale(1) rotate(0deg);
    }
    33% {
        transform: translate(45px, -65px) scale(1.12) rotate(120deg);
    }
    66% {
        transform: translate(-55px, 35px) scale(0.88) rotate(240deg);
    }
    100% {
        transform: translate(25px, 55px) scale(1.06) rotate(360deg);
    }
}

/* Liquid Glass Cards & Panels */
.liquid-glass-panel, .portal-access-card {
    position: relative;
    z-index: 1;
    background: rgba(18, 20, 29, 0.65) !important;
    backdrop-filter: blur(28px) saturate(210%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(210%) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 20px !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

[data-theme="light"] .liquid-glass-panel, [data-theme="light"] .portal-access-card {
    background: rgba(255, 255, 255, 0.72) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
}

/* Glass Tabs Pill Bar */
.registration-mode-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.28);
    padding: 5px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    gap: 4px;
    margin-bottom: 24px;
    backdrop-filter: blur(14px);
}

[data-theme="light"] .registration-mode-tabs {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.registration-mode-tabs .tab-btn {
    border: none;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.registration-mode-tabs .tab-btn.active {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 18px var(--primary-glow) !important;
    font-weight: 700;
}

.registration-mode-tabs .tab-btn:hover:not(.active) {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

/* Glass Form Inputs */
.portal-access-card input[type="text"],
.portal-access-card input[type="email"],
.portal-access-card input[type="tel"],
.portal-access-card input[type="password"],
.portal-access-card select,
.liquid-glass-input {
    background: rgba(0, 0, 0, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: var(--radius-md) !important;
    color: var(--text-primary) !important;
    backdrop-filter: blur(12px) !important;
    transition: all 0.2s ease !important;
}

[data-theme="light"] .portal-access-card input[type="text"],
[data-theme="light"] .portal-access-card input[type="email"],
[data-theme="light"] .portal-access-card input[type="tel"],
[data-theme="light"] .portal-access-card input[type="password"],
[data-theme="light"] .portal-access-card select,
[data-theme="light"] .liquid-glass-input {
    background: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.portal-access-card input:focus,
.portal-access-card select:focus,
.liquid-glass-input:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 20px var(--primary-glow), inset 0 0 10px rgba(99, 102, 241, 0.1) !important;
}

/* Glass Buttons */
.portal-access-card .btn-primary,
.liquid-glass-btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover)) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 8px 24px var(--primary-glow) !important;
    border-radius: var(--radius-md) !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px;
    transition: all 0.25s ease !important;
}

.portal-access-card .btn-primary:hover,
.liquid-glass-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px var(--primary-glow) !important;
}
