/* ==========================================================================
   SIMAG — Sistem Informasi Pengajuan Magang
   Design system v2 — deep navy campus-console theme
   Single accent hue (blue), flat dark surfaces, no decorative colour glow.
   ========================================================================== */

:root{
  /* -- base navy scale -- */
  --bg: #0A0D15;
  --bg-2: #0D111B;
  --surface: #141926;
  --surface-2: #1B2231;
  --surface-3: #232B3D;
  --line: rgba(var(--tint-rgb),.09);
  --line-soft: rgba(var(--tint-rgb),.055);
  --glass-bg: rgba(22, 27, 40, 0.405);
  --glass-bg-solid: rgba(17, 21, 32, 0.525);
  --glass-border: rgba(var(--tint-rgb),.10);

  /* -- ink -- */
  --ink: #EEF1F8;
  --ink-soft: #A9AFC4;
  --muted: #7C8399;
  --muted-2: #565D74;

  /* -- accent (single hue) -- */
  --brand: #4C7DFF;
  --brand-2: #7DA2FF;
  --brand-ink: #0A0D15;
  --brand-soft: rgba(76,125,255,.14);
  --brand-grad: linear-gradient(135deg, #5B8CFF 0%, #4C7DFF 55%, #3562E0 100%);

  /* -- semantic status, muted for dark bg -- */
  --accent: #3DDC9B;
  --accent-soft: rgba(61,220,155,.13);
  --amber: #F5B15C;
  --amber-soft: rgba(245,177,92,.14);
  --red: #FF7A7A;
  --red-soft: rgba(255,122,122,.13);
  --blue: #6FA0FF;
  --blue-soft: rgba(111,160,255,.14);

  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 11px;

  --shadow-soft: 0 1px 0 rgba(0,0,0,.2), 0 20px 40px -24px rgba(0,0,0,.65);
  --shadow-pop: 0 30px 60px -24px rgba(0,0,0,.75);
  --shadow-glass: 0 1px 0 rgba(255,255,255,.03) inset, 0 20px 44px -22px rgba(0,0,0,.6);

  /* -- theme-aware overlay tint: light-on-dark for the dark theme, flips to
        dark-on-light below. Used anywhere a subtle hover/fill tint is needed. -- */
  --tint-rgb: 228,232,245;
  --scrollbar-thumb: #2A3245;
  --topbar-fade-rgb: 10,13,21;

  /* -- page backdrop (body::before/::after) -- */
  --page-glow: #131829;
  --page-grad-a: #0B0F19;
  --page-grad-b: #090C13;
  --page-grad-c: #07090F;

  /* -- login page: text sits directly on the background photo, so its
        color must flip with the theme independently of --ink -- */
  --login-ink: #fff;
  --login-ink-soft: #9AA3BD;
  --login-ink-mute: #565D74;
  /* login card: deliberately more transparent than --glass-bg so the photo
     shows through — just a hint of glass, with a thin, slightly-brighter
     border to keep the edge readable against a busy background. */
  --login-card-bg: rgba(22,27,40,.20);
  --login-card-border: rgba(var(--tint-rgb),.16);
  /* GANTI DI SINI: taruh 4 foto kamu di assets/img/ dengan nama persis di bawah ini
     (paths ini relatif ke file CSS ini, jadi berlaku sama di semua halaman) */
  --login-bg-dark: url("../img/login-bg-dark-desktop.png");
  --login-bg-light: url("../img/login-bg-light-desktop.png");
}
@media (max-width:860px){
  :root{
    --login-bg-dark: url("../img/login-bg-dark-mobile.png");
    --login-bg-light: url("../img/login-bg-light-mobile.png");
  }
}

/* ==========================================================================
   LIGHT THEME — overrides the same variables above. Every component below
   already reads colors through var(...), so this block is the entire diff.
   ========================================================================== */
[data-theme="light"]{
  --bg: #F3F5FA;
  --bg-2: #EBEEF6;
  --surface: #FFFFFF;
  --surface-2: #F3F5FA;
  --surface-3: #E7EAF3;
  --line: rgba(20,24,40,.10);
  --line-soft: rgba(20,24,40,.06);
  --glass-bg: rgba(255,255,255,.68);
  --glass-bg-solid: rgb(255,255,255);
  --glass-border: rgba(20,24,40,.08);

  --ink: #171B26;
  --ink-soft: #4B5268;
  --muted: #6A7188;
  --muted-2: #99A0B4;

  --accent: #17A34A;
  --accent-soft: rgba(23,163,74,.12);
  --amber: #B45309;
  --amber-soft: rgba(180,83,9,.12);
  --red: #DC2626;
  --red-soft: rgba(220,38,38,.10);
  --blue: #2563EB;
  --blue-soft: rgba(37,99,235,.12);

  --shadow-soft: 0 1px 0 rgba(20,24,40,.03), 0 16px 32px -20px rgba(20,24,40,.16);
  --shadow-pop: 0 24px 48px -20px rgba(20,24,40,.22);
  --shadow-glass: 0 1px 0 rgba(255,255,255,.6) inset, 0 16px 36px -18px rgba(20,24,40,.14);

  --tint-rgb: 15,18,30;
  --scrollbar-thumb: #C7CCDA;
  --topbar-fade-rgb: 243,245,250;

  --page-glow: #E4EAF8;
  --page-grad-a: #FFFFFF;
  --page-grad-b: #F2F4FA;
  --page-grad-c: #EAEEF6;

  --login-ink: #171B26;
  --login-ink-soft: #4B5268;
  --login-ink-mute: #8890A6;
  --login-card-bg: rgba(255,255,255,.24);
  --login-card-border: rgba(20,24,40,.16);
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family:'Inter',ui-sans-serif,system-ui,-apple-system,sans-serif;
  color:var(--ink);
  background:var(--bg);
  min-height:100vh;
  -webkit-font-smoothing:antialiased;
  position:relative;
}
/* Flat, calm backdrop — a single soft vertical gradient plus a faint dot
   texture. No multi-colour glow blobs: depth comes from surfaces/contrast. */
body::before{
  content:"";
  position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:
    radial-gradient(120% 80% at 50% -10%, var(--page-glow) 0%, transparent 60%),
    linear-gradient(180deg, var(--page-grad-a) 0%, var(--page-grad-b) 55%, var(--page-grad-c) 100%);
}
body::after{
  content:"";
  position:fixed; inset:0; z-index:-1; pointer-events:none; opacity:.5;
  background-image:radial-gradient(rgba(var(--tint-rgb),.05) .9px, transparent .9px);
  background-size:24px 24px;
  mask-image:radial-gradient(85% 60% at 50% 0%, #000 0%, transparent 78%);
}
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; }
img{ max-width:100%; display:block; }
::selection{ background:var(--brand); color:#fff; }
::-webkit-scrollbar{ width:8px; height:8px; }
::-webkit-scrollbar-thumb{ background:var(--scrollbar-thumb); border-radius:99px; }
input, select, textarea{ font-family:inherit; }

/* ---------------------------------------------------------- App shell --- */
.app-shell{ display:flex; min-height:100vh; gap:0; }
.main-col{ flex:1; min-width:0; }
.main-content{ padding:26px 32px 60px; max-width:1180px; margin:0 auto; }
@media (max-width:640px){ .main-content{ padding:16px 14px 48px; } }

/* ------------------------------------------------------------ Sidebar --- */
.sidebar{
  width:242px; flex-shrink:0;
  background:var(--glass-bg);
  -webkit-backdrop-filter:blur(22px) saturate(140%);
  backdrop-filter:blur(22px) saturate(140%);
  border:1px solid var(--glass-border);
  border-radius:24px;
  min-height:calc(100vh - 28px);
  display:flex; flex-direction:column; padding:20px 14px;
  position:sticky; top:14px; margin:14px 0 14px 14px;
  box-shadow:var(--shadow-glass);
}
.sidebar-brand{ display:flex; align-items:center; gap:9px; padding:6px 8px 20px; }
.sidebar-brand .logo-mark{
  width:32px; height:32px; border-radius:10px; background:var(--brand-grad);
  display:flex; align-items:center; justify-content:center; color:#fff; font-weight:800; font-size:13px;
  box-shadow:0 6px 16px -6px rgba(76,125,255,.55);
}
.sidebar-brand span{ font-weight:700; font-size:15px; letter-spacing:-.01em; color:var(--ink); }
.sidebar-section-label{ font-size:11px; font-weight:600; color:var(--muted-2); padding:16px 10px 6px; }
.nav-item{
  display:flex; align-items:center; gap:11px; padding:9px 12px; border-radius:13px;
  font-size:13.5px; font-weight:500; color:var(--ink-soft); margin-bottom:2px; transition:background .15s, color .15s, box-shadow .15s;
}
.nav-item:hover{ background:rgba(var(--tint-rgb),.06); color:var(--ink); }
.nav-item.active{ background:var(--brand-grad); color:#fff; box-shadow:0 10px 22px -10px rgba(76,125,255,.55); }
.nav-item svg{ width:17px; height:17px; flex-shrink:0; }
.sidebar-footer{ margin-top:auto; padding-top:14px; border-top:1px solid var(--line); }
.sidebar-user{ display:flex; align-items:center; gap:10px; padding:8px; border-radius:14px; }
.avatar{
  width:34px; height:34px; border-radius:50%; background:var(--brand-grad); color:#fff;
  display:flex; align-items:center; justify-content:center; font-size:11.5px; font-weight:700; flex-shrink:0;
}
.sidebar-user .who{ min-width:0; }
.sidebar-user .who p:first-child{ font-size:12.5px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:var(--ink); }
.sidebar-user .who p:last-child{ font-size:11px; color:var(--muted); }
.sidebar-mobile-toggle{ display:none; }
@media (max-width:960px){
  /* Mobile sidebar: solid opaque panel, no backdrop-filter — stacking a
     blurred glass panel on top of a blurred dim overlay was what produced
     the "everything turns hazy" bug. Crisp and legible instead. */
  .sidebar{
    position:fixed; z-index:200; left:0; top:0; margin:0; border-radius:0 24px 24px 0;
    min-height:100vh; transform:translateX(-100%); transition:transform .2s ease;
    box-shadow:var(--shadow-pop);
    background:var(--glass-bg-solid);
    -webkit-backdrop-filter:none; backdrop-filter:none;
  }
  .sidebar.open{ transform:translateX(0); }
  .sidebar-backdrop{ display:none; position:fixed; inset:0; background:rgba(4,5,9,.6); z-index:190; }
  .sidebar-backdrop.open{ display:block; }
  .sidebar-mobile-toggle{ display:flex; }
}

/* ------------------------------------------------------------- Topbar --- */
.topbar{
  position:sticky; top:0; z-index:80; display:flex; align-items:center; justify-content:space-between;
  gap:12px; padding:18px 32px 14px;
  background:linear-gradient(180deg, rgba(var(--topbar-fade-rgb),.92), rgba(var(--topbar-fade-rgb),.55) 80%, transparent);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
}
@media (max-width:640px){ .topbar{ padding:14px 14px 10px; } }
.topbar-title{ font-size:13.5px; font-weight:600; color:var(--muted); }
.icon-btn{
  width:36px; height:36px; border-radius:50%; border:1px solid var(--glass-border); background:var(--surface-2);
  display:flex; align-items:center; justify-content:center; color:var(--ink-soft); transition:background .15s, transform .15s, color .15s;
  box-shadow:0 4px 14px -8px rgba(0,0,0,.5);
}
.icon-btn:hover{ background:var(--surface-3); color:var(--ink); transform:translateY(-1px); }
.icon-btn svg{ width:17px; height:17px; }

/* -------------------------------------------------------------- Cards --- */
.card{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-lg);
  padding:22px; box-shadow:var(--shadow-soft);
}
/* Emphasis card — one deliberate accent per page, not decorative on every
   surface. A single soft blue highlight in one corner, nothing else. */
.card-black{
  background:
    radial-gradient(70% 100% at 100% 0%, rgba(76,125,255,.20) 0%, transparent 60%),
    linear-gradient(155deg, #171E2E 0%, #0E1220 100%);
  color:#fff; border-radius:var(--radius-lg);
  padding:22px; position:relative; overflow:hidden; border:1px solid rgba(var(--tint-rgb),.08);
  box-shadow:0 20px 40px -18px rgba(0,0,0,.6);
}
.card-glass{
  background:var(--glass-bg);
  -webkit-backdrop-filter:blur(20px) saturate(140%);
  backdrop-filter:blur(20px) saturate(140%);
  border:1px solid var(--glass-border); border-radius:var(--radius-lg); padding:22px;
  box-shadow:var(--shadow-glass);
}
.card-flat{ background:var(--surface-2); border:1px solid var(--line-soft); border-radius:var(--radius-md); padding:18px; }

.onboard-steps{ display:grid; grid-template-columns:repeat(5,1fr); gap:10px; }
.onboard-step{
  display:flex; flex-direction:column; align-items:flex-start; gap:9px; padding:13px;
  border-radius:14px; background:rgba(var(--tint-rgb),.05); border:1px solid var(--line-soft);
  transition:background .15s, border-color .15s, transform .15s;
}
.onboard-step:hover{ background:rgba(var(--tint-rgb),.09); border-color:var(--line); transform:translateY(-1px); }
.onboard-step-icon{ width:30px; height:30px; border-radius:9px; background:var(--brand-soft); color:var(--brand); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.onboard-step-title{ font-size:12.5px; font-weight:650; color:var(--ink); margin:0 0 3px; }
.onboard-step-desc{ font-size:11px; color:var(--muted); line-height:1.4; margin:0; }
@media (max-width:960px){ .onboard-steps{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px){ .onboard-steps{ grid-template-columns:1fr; } }
.card-title{ font-size:14.5px; font-weight:650; letter-spacing:-.005em; color:var(--ink); }
.card-sub{ font-size:12px; color:var(--muted); margin-top:2px; }
.card-black .card-sub{ color:#9AA6C4; }

/* ------------------------------------------------------------- Grids ---- */
.grid{ display:grid; gap:18px; }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-2{ grid-template-columns:repeat(2,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }
.col-span-2{ grid-column:span 2; }
@media (max-width:960px){ .grid-3,.grid-2,.grid-4{ grid-template-columns:1fr 1fr; } .col-span-2{ grid-column:span 2; } }
@media (max-width:640px){ .grid-3,.grid-2,.grid-4{ grid-template-columns:1fr; } .col-span-2{ grid-column:span 1; } }

/* ------------------------------------------------------------ Buttons --- */
.btn{
  display:inline-flex; align-items:center; gap:8px; font-size:13px; font-weight:600;
  padding:10px 16px; border-radius:13px; border:1px solid transparent; transition:opacity .15s, background .15s, transform .15s;
  white-space:nowrap;
}
.btn svg{ width:15px; height:15px; }
.btn-primary{ background:var(--brand-grad); color:#fff; box-shadow:0 10px 22px -10px rgba(76,125,255,.6); }
.btn-primary:hover{ opacity:.92; transform:translateY(-1px); }
.btn-secondary{ background:var(--surface-2); color:var(--ink); border-color:var(--line); }
.btn-secondary:hover{ background:var(--surface-3); }
.btn-ghost{ background:transparent; color:var(--ink-soft); }
.btn-ghost:hover{ background:rgba(var(--tint-rgb),.06); color:var(--ink); }
.btn-danger{ background:var(--red-soft); color:var(--red); }
.btn-sm{ padding:7px 12px; font-size:12.5px; border-radius:10px; }
.btn-block{ width:100%; justify-content:center; }
.btn[disabled]{ opacity:.45; pointer-events:none; }

/* -------------------------------------------------------------- Forms --- */
.field{ margin-bottom:16px; }
.field label{ display:block; font-size:12.5px; font-weight:600; color:var(--ink-soft); margin-bottom:6px; }
.field .hint{ font-size:11.5px; color:var(--muted-2); margin-top:4px; }
.input, select.input, textarea.input{
  width:100%; padding:10.5px 13px; border-radius:12px; border:1px solid var(--line);
  background:var(--surface-2); font-size:13.5px; color:var(--ink); outline:none; transition:border-color .15s, background .15s;
}
.input::placeholder{ color:var(--muted-2); }
.input:focus{ border-color:var(--brand); background:var(--surface-3); box-shadow:0 0 0 3px rgba(76,125,255,.18); }
textarea.input{ resize:vertical; min-height:90px; }
select.input option{ background:var(--surface-2); color:var(--ink); }

/* ------------------------------------------------------------- Badges --- */
.badge{ display:inline-flex; align-items:center; gap:5px; padding:4px 10px; border-radius:99px; font-size:11.5px; font-weight:600; }
.badge-green{ background:var(--accent-soft); color:var(--accent); }
.badge-amber{ background:var(--amber-soft); color:var(--amber); }
.badge-red{ background:var(--red-soft); color:var(--red); }
.badge-neutral{ background:rgba(var(--tint-rgb),.08); color:var(--muted); }
.badge-black{ background:var(--brand-grad); color:#fff; }
.badge-blue{ background:var(--blue-soft); color:var(--blue); }

/* ------------------------------------------------------------- Tables --- */
.table-wrap{ overflow-x:auto; }
table.data-table{ width:100%; border-collapse:collapse; font-size:13px; }
table.data-table th{ text-align:left; font-size:11px; font-weight:600; color:var(--muted-2); padding:10px 12px; border-bottom:1px solid var(--line); white-space:nowrap; }
table.data-table td{ padding:12px; border-bottom:1px solid var(--line-soft); vertical-align:middle; color:var(--ink-soft); }
table.data-table tr:last-child td{ border-bottom:none; }
table.data-table tr:hover td{ background:rgba(var(--tint-rgb),.03); }

/* -------------------------------------------------------------- Misc ---- */
.stat-num{ font-size:30px; font-weight:700; letter-spacing:-.02em; color:var(--ink); }
.stat-label{ font-size:12px; color:var(--muted); margin-top:2px; }
.card-black .stat-label{ color:#9AA6C4; }
.card-black .stat-num{ color:#fff; }
.card-black .badge-green{ background:rgba(61,220,155,.16); color:#3DDC9B; }
.card-black .badge-amber{ background:rgba(245,177,92,.18); color:#F5B15C; }
.card-black .badge-red{ background:rgba(255,122,122,.16); color:#FF7A7A; }
.card-black .badge-neutral{ background:rgba(228,232,245,.10); color:#C7CCDA; }
.card-black .badge-blue{ background:rgba(111,160,255,.18); color:#6FA0FF; }
.divider{ height:1px; background:var(--line); margin:18px 0; border:none; }
.empty-state{ text-align:center; padding:48px 20px; }
.empty-state svg{ width:38px; height:38px; color:var(--muted-2); margin-bottom:12px; }
.empty-state h3{ font-size:15px; margin:0 0 6px; color:var(--ink); }
.empty-state p{ font-size:13px; color:var(--muted); max-width:340px; margin:0 auto 18px; }

.toast-stack{ position:fixed; bottom:20px; right:20px; z-index:400; display:flex; flex-direction:column; gap:8px; }
.toast{ background:var(--surface-3); border:1px solid var(--line); color:var(--ink); padding:11px 16px; border-radius:13px; font-size:13px; box-shadow:var(--shadow-pop); animation:toastIn .2s ease; }
@keyframes toastIn{ from{opacity:0; transform:translateY(8px);} to{opacity:1; transform:translateY(0);} }

.timeline{ display:flex; flex-direction:column; }
.timeline-item{ display:flex; gap:12px; position:relative; padding-bottom:22px; }
.timeline-item:last-child{ padding-bottom:0; }
.timeline-dot{ width:24px; height:24px; border-radius:50%; display:flex; align-items:center; justify-content:center; flex-shrink:0; z-index:1; font-size:11px; }
.timeline-item:not(:last-child) .timeline-line{ position:absolute; left:11px; top:24px; bottom:0; width:2px; background:var(--line); }
.timeline-dot.done{ background:var(--brand-grad); color:#fff; }
.timeline-dot.current{ background:var(--amber-soft); color:var(--amber); border:2px solid var(--amber); }
.timeline-dot.upcoming{ background:rgba(var(--tint-rgb),.06); color:var(--muted-2); }

.progress-ring-wrap{ position:relative; width:64px; height:64px; flex-shrink:0; }
.progress-ring-wrap svg{ width:100%; height:100%; transform:rotate(-90deg); }
.progress-ring-label{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:700; color:var(--ink); }

.doc-item{ display:flex; align-items:center; justify-content:between; gap:12px; padding:14px 0; border-bottom:1px solid var(--line-soft); }
.doc-item:last-child{ border-bottom:none; }

.step-indicator{ display:flex; align-items:center; gap:8px; margin-bottom:26px; flex-wrap:wrap; }
.step-pill{ display:flex; align-items:center; gap:8px; font-size:12.5px; font-weight:600; color:var(--muted-2); }
.step-pill .num{ width:24px; height:24px; border-radius:50%; background:rgba(var(--tint-rgb),.07); color:var(--muted); display:flex; align-items:center; justify-content:center; font-size:11.5px; }
.step-pill.active{ color:var(--ink); }
.step-pill.active .num{ background:var(--brand-grad); color:#fff; }
.step-pill.done .num{ background:var(--accent); color:#0A0D15; }
.step-sep{ width:22px; height:1px; background:var(--line); }

.login-shell{
  min-height:100vh; display:flex; position:relative; z-index:1;
  background-color:var(--bg);
  background-size:cover; background-position:center; background-repeat:no-repeat; background-attachment:fixed;
  background-image:
    linear-gradient(160deg, rgba(6,8,13,.74) 0%, rgba(6,8,13,.42) 45%, rgba(6,8,13,.76) 100%),
    var(--login-bg-dark);
  transition:background-image .2s ease;
}
[data-theme="light"] .login-shell{
  /* Kept deliberately light-touch — just enough of a scrim for text
     contrast, without fogging the photo into a wash of white. */
  background-image:
    linear-gradient(160deg, rgba(255,255,255,.30) 0%, rgba(244,247,252,.10) 45%, rgba(255,255,255,.32) 100%),
    var(--login-bg-light);
}
.login-brand{
  flex:1.1; color:var(--login-ink); padding:52px;
  display:flex; flex-direction:column; justify-content:space-between; position:relative; overflow:hidden;
}
.login-brand-title{ font-size:34px; line-height:1.25; font-weight:700; letter-spacing:-.02em; max-width:420px; margin:0 0 14px; color:var(--login-ink); }
.login-brand-sub{ color:var(--login-ink-soft); font-size:14.5px; max-width:380px; line-height:1.6; }
.login-brand-copy{ color:var(--login-ink-mute); font-size:12px; }
.login-form-side{ flex:1; display:flex; align-items:center; justify-content:center; padding:32px; position:relative; }
.login-card{
  width:100%; max-width:380px; background:var(--login-card-bg);
  -webkit-backdrop-filter:blur(3px) saturate(100%); backdrop-filter:blur(3px) saturate(100%);
  border:1px solid var(--login-card-border); border-radius:24px; padding:30px;
  box-shadow:var(--shadow-glass);
}
.login-theme-toggle{ position:absolute; top:20px; right:20px; z-index:5; } /* top-right corner of the login card, for switching light/dark theme on the fly. */

/* Mobile: brand section stays visible above the form (not hidden) — user
   scrolls down from brand to the login/register card, same info hierarchy
   as desktop's side-by-side layout. */
@media (max-width:860px){
  .login-shell{ flex-direction:column; height:auto; }
  .login-brand{ display:flex; flex:none; padding:44px 24px 30px; gap:22px; justify-content:flex-start; }
  .login-brand-title{ font-size:26px; max-width:100%; }
  .login-brand-sub{ max-width:100%; }
  .login-form-side{ padding:16px 16px 44px; flex:1; }
}

.login-tabs{ display:flex; gap:4px; background:rgba(var(--tint-rgb),.06); border-radius:12px; padding:4px; margin-bottom:22px; }
.login-tab{ flex:1; text-align:center; padding:8px 0; border-radius:9px; font-size:13px; font-weight:600; color:var(--muted); background:transparent; border:none; transition:background .15s, color .15s; }
.login-tab.active{ background:var(--surface); color:var(--ink); box-shadow:var(--shadow-soft); }

/* Role toggle inside the "Daftar" pane — same segmented-pill language as
   the login/register tabs above, used to pick mahasiswa vs admin. */
.role-toggle{ display:flex; gap:4px; background:rgba(var(--tint-rgb),.06); border-radius:12px; padding:4px; margin-bottom:18px; }
.role-toggle-btn{ flex:1; text-align:center; padding:8px 0; border-radius:9px; font-size:12.5px; font-weight:600; color:var(--muted); background:transparent; border:none; transition:background .15s, color .15s; }
.role-toggle-btn.active{ background:var(--surface); color:var(--ink); box-shadow:var(--shadow-soft); }

/* Glassy variant of .btn-primary, used only for the Masuk / Daftar submit
   buttons on the login page — see-through with a soft brand tint, thin
   bright edge, rather than the solid gradient used elsewhere in the app. */
.btn-primary.btn-glass{
  background:linear-gradient(135deg, rgba(91,140,255,.42) 0%, rgba(53,98,224,.34) 100%);
  -webkit-backdrop-filter:blur(14px) saturate(160%);
  backdrop-filter:blur(14px) saturate(160%);
  border:1px solid rgba(255,255,255,.30);
  box-shadow:0 10px 26px -14px rgba(76,125,255,.5), inset 0 1px 0 rgba(255,255,255,.22);
  color:#fff;
}
.btn-primary.btn-glass:hover{ opacity:1; filter:brightness(1.08); }
[data-theme="light"] .btn-primary.btn-glass{
  background:linear-gradient(135deg, rgba(91,140,255,.55) 0%, rgba(53,98,224,.46) 100%);
  border:1px solid rgba(255,255,255,.6);
  box-shadow:0 10px 22px -14px rgba(37,99,235,.35), inset 0 1px 0 rgba(255,255,255,.45);
  color:#fff;
  text-shadow:0 1px 2px rgba(20,30,70,.25);
}

.modal-backdrop{ position:fixed; inset:0; background:rgba(4,5,9,.65); z-index:300; display:flex; align-items:center; justify-content:center; padding:16px; }
.modal-box{ background:var(--glass-bg-solid); -webkit-backdrop-filter:blur(18px); backdrop-filter:blur(18px); border:1px solid var(--glass-border); border-radius:22px; padding:24px; max-width:440px; width:100%; box-shadow:var(--shadow-pop); max-height:88vh; overflow-y:auto; }

.chart-legend{ display:flex; gap:16px; flex-wrap:wrap; font-size:12px; color:var(--muted); }
.chart-legend .dot{ width:8px; height:8px; border-radius:50%; display:inline-block; margin-right:5px; }
