/* NTA Mock Test Interface Styling - Authentic https://www.nta.ac.in Theme */
:root {
    --nta-header-blue: #0d3b66;
    --nta-sub-header: #f4f6f8;
    --nta-green: #28a745;
    --nta-red: #dc3545;
    --nta-purple: #6f42c1;
    --nta-grey: #e2e8f0;
    --nta-border: #cbd5e1;
    --lakshya-navy: #0f172a;
    --lakshya-accent: #f97316;
    --lakshya-light: #f8fafc;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f1f5f9;
    color: #1e293b;
    margin: 0;
    padding: 0;
}

/* Header Bar */
.nta-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #ffffff;
    padding: 10px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nta-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nta-brand img {
    height: 48px;
    background: #ffffff;
    padding: 4px 8px;
    border-radius: 6px;
}

.nta-brand-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nta-brand-sub {
    font-size: 12px;
    color: #93c5fd;
}

/* Demo Role Switcher Toolbar */
.role-bar {
    background: #1e293b;
    color: #cbd5e1;
    padding: 6px 20px;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #334155;
}

.role-badge {
    padding: 4px 10px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
}

.role-superadmin { background: #ef4444; color: white; }
.role-admin { background: #f59e0b; color: white; }
.role-faculty { background: #3b82f6; color: white; }
.role-student { background: #10b981; color: white; }

/* Palette Legend Icons - Recreating NTA Specification */
.palette-legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 13px;
}

.palette-box {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    border-radius: 4px;
    border: 1px solid #94a3b8;
}

/* NTA Color Codes */
.box-not-visited {
    background-color: #ffffff;
    color: #334155;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
}

.box-not-answered {
    background-color: #dc2626;
    color: #ffffff;
    border-radius: 12px 12px 0 0; /* Cut corner style */
}

.box-answered {
    background-color: #16a34a;
    color: #ffffff;
    border-radius: 0 0 12px 12px;
}

.box-marked {
    background-color: #7c3aed;
    color: #ffffff;
    border-radius: 50%; /* Circle shape */
}

.box-answered-marked {
    background-color: #7c3aed;
    color: #ffffff;
    border-radius: 50%;
    position: relative;
}

.box-answered-marked::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    border: 1px solid #ffffff;
}

/* NTA Test Layout Grid */
.test-container {
    display: grid;
    grid-template-columns: 1fr 340px;
    height: calc(100vh - 120px);
    overflow: hidden;
}

.question-area {
    background: #ffffff;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e2e8f0;
}

.sidebar-palette {
    background: #f8fafc;
    padding: 16px;
    overflow-y: auto;
    border-left: 1px solid #cbd5e1;
}

.subject-tabs {
    background: #0f172a;
    display: flex;
    gap: 2px;
    padding: 4px 8px 0 8px;
}

.subject-btn {
    padding: 8px 18px;
    background: #1e293b;
    color: #94a3b8;
    border: none;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    font-weight: 600;
}

.subject-btn.active {
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
}

.question-header {
    background: #f1f5f9;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
}

.question-body {
    padding: 24px;
    overflow-y: auto;
    flex-grow: 1;
}

.action-footer {
    background: #f8fafc;
    padding: 12px 20px;
    border-top: 1px solid #cbd5e1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-nta {
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-save-next { background: #16a34a; color: white; }
.btn-save-next:hover { background: #15803d; }

.btn-clear { background: #64748b; color: white; }
.btn-clear:hover { background: #475569; }

.btn-mark-review { background: #7c3aed; color: white; }
.btn-mark-review:hover { background: #6d28d9; }

.btn-submit-exam { background: #ea580c; color: white; padding: 10px 24px; font-size: 14px; font-weight: 700; }
.btn-submit-exam:hover { background: #c2410c; }

/* Palette Grid */
.palette-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 16px;
}

.palette-btn {
    width: 100%;
    height: 40px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.palette-btn:hover {
    transform: scale(1.05);
}

.candidate-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 16px;
}

.candidate-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #3b82f6;
}

/* Card Styling for Dashboards */
.dash-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

.dash-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}
.badge-easy { background: #dcfce7; color: #15803d; }
.badge-medium { background: #fef9c3; color: #a16207; }
.badge-high { background: #fee2e2; color: #b91c1c; }
