:root {
  --bg: #f4f7fb;
  --card: rgba(255,255,255,.85);
  --line: #e5e7eb;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
}
body { background: radial-gradient(circle at top left, #eef4ff, #f7f8fc 45%, #eef2ff 100%); color: var(--text); font-family: Inter, system-ui, sans-serif; }
.app-shell { display:flex; min-height:100vh; }
.sidebar { width:286px; background:linear-gradient(180deg,#0f172a,#111827 60%, #1f2937); color:#fff; padding:24px 18px; position:sticky; top:0; height:100vh; display:flex; flex-direction:column; }
.brand { display:flex; gap:14px; align-items:center; }
.brand-icon { width:50px; height:50px; display:grid; place-items:center; border-radius:16px; background:linear-gradient(135deg,#3b82f6,#1d4ed8); box-shadow:0 10px 30px rgba(37,99,235,.35); }
.brand-title { font-weight:800; letter-spacing:.2px; }
.sidebar .nav-link { color:#d1d5db; border-radius:14px; padding:12px 14px; font-weight:500; }
.sidebar .nav-link:hover, .sidebar .nav-link.active { background:rgba(255,255,255,.08); color:#fff; }
.content { flex:1; padding:28px; }
.topbar, .card { background:var(--card); backdrop-filter: blur(10px); border:1px solid rgba(255,255,255,.55); border-radius:22px; box-shadow:0 18px 60px rgba(15,23,42,.08); }
.topbar { padding:18px 20px; }
.user-chip { background:#eef2ff; color:#312e81; padding:10px 14px; border-radius:999px; font-weight:600; }
.dashboard-stat .stat-label { color:var(--muted); margin-bottom:10px; text-transform:uppercase; font-size:.78rem; letter-spacing:.08em; }
.dashboard-stat .stat-value { font-size:2rem; font-weight:800; }
.gradient-card { background:linear-gradient(135deg,#2563eb,#7c3aed); border:none; }
.login-page { min-height:100vh; display:grid; place-items:center; background:linear-gradient(135deg,#eaf2ff,#f6f7ff); }
.login-card { max-width:980px; border-radius:30px; }
.login-side { border-right:1px solid rgba(37,99,235,.08); }
.question-card, .question-builder { border:1px solid var(--line); border-radius:18px; background:#fff; }
.profile-preview, .profile-placeholder { width:120px; height:120px; border-radius:50%; object-fit:cover; background:#e5e7eb; display:grid; place-items:center; margin-inline:auto; font-size:2rem; }
.premium-table thead th { color:var(--muted); font-size:.8rem; text-transform:uppercase; letter-spacing:.06em; }
.premium-table tbody tr { border-color:rgba(148,163,184,.15); }
.premium-pagination .page-link { border:none; margin:0 4px; border-radius:12px; color:var(--text); }
.premium-pagination .active .page-link { background:var(--primary); color:#fff; }
.timer-box { min-width:140px; border-radius:18px; padding:14px 18px; background:#fff7ed; border:1px solid #fed7aa; text-align:center; }
.timer-display { font-size:2rem; font-weight:800; color:#c2410c; }
.notif-badge { position:absolute; top:-6px; right:-6px; }
.notification-menu { width:320px; border:none; border-radius:18px; box-shadow:0 20px 50px rgba(15,23,42,.15); }
.notification-item { padding:.6rem .25rem; border-bottom:1px solid rgba(148,163,184,.16); }
.notification-item:last-child { border-bottom:0; }
.notification-item.unread { background:#eff6ff; }
.premium-alert { border:none; border-radius:16px; box-shadow:0 10px 25px rgba(15,23,42,.06); }
.exam-shell { border:1px solid rgba(251,146,60,.15); }
@media print {
  .sidebar, .topbar form, .btn, .notification-menu, .dropdown, nav, .premium-pagination { display:none !important; }
  .content { padding:0; }
  .card, .topbar { box-shadow:none; border:1px solid #ddd; }
  body { background:#fff; }
}
@media (max-width: 991px) {
  .app-shell { flex-direction:column; }
  .sidebar { width:100%; height:auto; position:relative; }
  .content { padding:18px; }
}

.clickable-card { transition: transform .18s ease, box-shadow .18s ease; }
.clickable-card:hover { transform: translateY(-4px); box-shadow: 0 24px 70px rgba(15,23,42,.12); }
.sidebar small { color: rgba(255,255,255,.75); line-height: 1.4; display:block; }

.assignment-panel { background:#f8fafc; border:1px solid rgba(148,163,184,.18); border-radius:18px; padding:14px; }
.assignment-checkboxes { max-height:240px; overflow:auto; }
.assignment-choice { display:flex; align-items:center; gap:10px; padding:10px 12px; background:#fff; border:1px solid rgba(148,163,184,.2); border-radius:14px; width:100%; cursor:pointer; }
.assignment-choice input { margin:0; }
