/* CBT SMPN 2 BOGOR — Premium Blue visual layer
   Safe presentation-only overrides. Does not change application logic or data. */
:root {
  color-scheme: light;
  --cbt-navy: #10264b;
  --cbt-blue: #1d4ed8;
  --cbt-blue-deep: #1e40af;
  --cbt-blue-soft: #eff6ff;
  --cbt-line: #dbe5f2;
  --cbt-ink: #172b4d;
}
html { background: #f4f7fc; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--cbt-ink);
  background: #f4f7fc;
  -webkit-font-smoothing: antialiased;
}
#root { min-height: 100vh; }
/* Login / entry screens */
.min-h-dvh.bg-white {
  background:
    radial-gradient(ellipse at 12% 8%, rgba(59,130,246,.13), transparent 36%),
    radial-gradient(ellipse at 92% 92%, rgba(30,64,175,.10), transparent 34%),
    linear-gradient(145deg, #f8fbff 0%, #eef4fc 100%) !important;
}
.bg-white.border.border-slate-200.rounded-3xl.shadow-lg {
  border-color: rgba(203, 216, 235, .9) !important;
  box-shadow: 0 24px 70px rgba(15, 40, 80, .12), 0 3px 12px rgba(15, 40, 80, .04) !important;
}
/* Primary palette: indigo -> premium blue */
.bg-indigo-950 { background: linear-gradient(115deg, #10264b 0%, #173d78 55%, #1d4ed8 100%) !important; }
.bg-indigo-700, .hover\:bg-indigo-700:hover { background-color: #1e40af !important; }
.bg-indigo-600, .hover\:bg-indigo-600:hover { background-color: #1d4ed8 !important; }
.bg-indigo-500 { background-color: #3b82f6 !important; }
.bg-indigo-100 { background-color: #dbeafe !important; }
.bg-indigo-50 { background-color: #eff6ff !important; }
.text-indigo-700 { color: #1e40af !important; }
.text-indigo-600, .hover\:text-indigo-600:hover { color: #1d4ed8 !important; }
.text-indigo-500 { color: #3b82f6 !important; }
.text-indigo-300 { color: #bfdbfe !important; }
.text-indigo-200 { color: #dbeafe !important; }
.text-indigo-100 { color: #eff6ff !important; }
.border-indigo-600 { border-color: #2563eb !important; }
.border-indigo-500 { border-color: #3b82f6 !important; }
.border-indigo-200 { border-color: #bfdbfe !important; }
.focus\:border-indigo-500:focus { border-color: #2563eb !important; }
.focus\:ring-indigo-500:focus { --tw-ring-color: rgba(37,99,235,.25) !important; }
/* Elevated panels and cards */
.bg-white.rounded-2xl.border,
.bg-white.border.border-slate-200.rounded-2xl,
.bg-white.rounded-2xl.border.border-slate-200 {
  border-color: var(--cbt-line) !important;
  box-shadow: 0 8px 26px rgba(16, 38, 75, .055) !important;
}
.bg-white.rounded-2xl.border.border-slate-200:hover {
  box-shadow: 0 12px 32px rgba(16, 38, 75, .085) !important;
}
/* Inputs and controls */
input, select, textarea {
  accent-color: #2563eb;
}
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  border-radius: .8rem;
}
input:focus, select:focus, textarea:focus {
  outline-color: #3b82f6;
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59,130,246,.13) !important;
}
button { transition: background-color .16s ease, box-shadow .16s ease, transform .16s ease; }
button.bg-indigo-600, button.bg-indigo-700 {
  box-shadow: 0 5px 14px rgba(37,99,235,.18);
}
button.bg-indigo-600:hover, button.bg-indigo-700:hover {
  box-shadow: 0 8px 20px rgba(37,99,235,.25);
  transform: translateY(-1px);
}
/* Student header and exam cards */
header.sticky {
  background: rgba(255,255,255,.94) !important;
  backdrop-filter: blur(14px);
  border-bottom-color: #dbe5f2 !important;
}
.bg-slate-100 { background-color: #f4f7fc !important; }
.border-slate-200 { border-color: #e0e8f2; }
/* Table refinement */
thead, .bg-slate-50 { background-color: #f2f6fc !important; }
table { border-color: #e1e9f3; }
th { color: #3b4f6b; letter-spacing: .015em; }
td, th { border-color: #e8eef6; }
/* Focus visibility and mobile comfort */
:focus-visible { outline: 3px solid rgba(59,130,246,.45); outline-offset: 2px; }
@media (max-width: 640px) {
  .min-h-dvh.bg-white { padding-left: 1rem; padding-right: 1rem; }
  .bg-white.border.border-slate-200.rounded-3xl.shadow-lg { border-radius: 1.25rem !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
