body {
    background: linear-gradient(135deg, #f5f7fb 0%, #eef2ff 100%);
}

.hero-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(0,0,0,0.04);
}

.stat-pill {
    border-radius: 14px;
    padding: 12px 16px;
    background: #f1f5ff;
    color: #1f4b99;
    font-weight: 600;
}

.test-card {
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 14px;
    transition: all 0.2s ease;
}

.test-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.timer-bar {
    height: 10px;
    border-radius: 999px;
}

.question-card {
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.06);
}

.badge-subject {
    font-size: 0.75rem;
    padding: 6px 10px;
    border-radius: 999px;
}

.badge-physics { background: #e0f2fe; color: #0b5ed7; }
.badge-chemistry { background: #fff3cd; color: #d68a00; }
.badge-math { background: #e8f5e9; color: #2e7d32; }

.profile-card {
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.btn-rounded { border-radius: 999px; }

/* Dark theme */
body[data-theme="dark"] {
    background: radial-gradient(circle at 10% 20%, #1f2937 0, #0f172a 40%, #0b1220 100%);
    color: #e5e7eb;
}
body[data-theme="dark"] .navbar,
body[data-theme="dark"] .card,
body[data-theme="dark"] .hero-card,
body[data-theme="dark"] .profile-card {
    background-color: #111827 !important;
    color: #e5e7eb;
    border-color: rgba(255,255,255,0.06);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
body[data-theme="dark"] .bg-light {
    background-color: #0f172a !important;
}
body[data-theme="dark"] .text-muted {
    color: #9ca3af !important;
}
body[data-theme="dark"] .table {
    color: #e5e7eb;
}
body[data-theme="dark"] .table-light {
    background-color: #111827 !important;
}
body[data-theme="dark"] .alert {
    background-color: #1f2937;
    color: #e5e7eb;
    border-color: rgba(255,255,255,0.08);
}
body[data-theme="dark"] .btn-outline-primary {
    color: #93c5fd;
    border-color: #93c5fd;
}
body[data-theme="dark"] .btn-outline-primary:hover {
    background-color: #1d4ed8;
    color: #e5e7eb;
}
body[data-theme="dark"] .form-control,
body[data-theme="dark"] .form-select {
    background-color: #0f172a;
    color: #e5e7eb;
    border-color: rgba(255,255,255,0.08);
}
body[data-theme="dark"] input:disabled,
body[data-theme="dark"] select:disabled,
body[data-theme="dark"] textarea:disabled {
    background-color: #111827;
}
body[data-theme="dark"] .badge-subject.badge-physics { background: #1e40af; color: #bfdbfe; }
body[data-theme="dark"] .badge-subject.badge-chemistry { background: #92400e; color: #fde68a; }
body[data-theme="dark"] .badge-subject.badge-math { background: #14532d; color: #bbf7d0; }
