@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap');

/* ════════════════════════════════════════════════════════════
   SIMAMA — Dropbox-inspired theme
   Blue #0061FF on warm off-white #F7F5F2 · heavy grotesk headings
   (Archivo used as Sharp Grotesk substitute)
   Variable names are kept for backward-compat with inline styles;
   only their values are remapped to the new palette.
   ════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Brand / primary (Dropbox blue) ── */
  --primary:       #0061FF;
  --primary-dark:  #0048BD;
  --primary-mid:   #0048BD;   /* legacy: hover blue */
  --primary-light: #EAF1FF;   /* legacy: soft blue tint */
  --primary-text:  #0061FF;   /* legacy: text on tint */
  --blue-tint:     #EAF1FF;

  /* ── Text ── */
  --text:           #1E1919;
  --text-secondary: #637282;
  --text-muted:     #9EA9B2;

  /* ── Surfaces ── */
  --bg:            #FFFFFF;   /* app background */
  --warm:          #F7F5F2;   /* warm off-white surface / sidebar */
  --warm-2:        #F0EDE8;
  --card:          #FFFFFF;
  --border:        #D8D6D3;
  --border-subtle: #EDECEA;

  /* ── Status: success ── */
  --success:       #0AC27D;
  --success-bg:    #E0F7EF;
  --success-text:  #07976A;

  /* ── Status: warning ── */
  --warning:       #F5A623;
  --warning-text:  #B9791A;
  --warn:          #B9791A;
  --warn-bg:       #FDF1DD;
  --warn-text:     #B9791A;

  /* ── Status: danger / error ── */
  --error:         #C0392B;
  --danger:        #C0392B;
  --danger-bg:     #FBEAE8;
  --danger-text:   #C0392B;

  /* ── Secondary accent (purple group) ── */
  --purple-bg:     #F3E8FF;
  --purple-text:   #7C3AED;

  /* ── Metrics ── */
  --sidebar-w:     240px;
  --topbar-h:      60px;
  --radius:        8px;
  --radius-lg:     12px;
  --shadow:        0 1px 3px rgba(0,0,0,0.08);
  --sh-raised:     0 1px 3px rgba(0,0,0,0.08);
  --sh-overlay:    0 4px 12px rgba(0,0,0,0.12);
}

html, body {
  height: 100%;
  font-family: 'Archivo', -apple-system, 'Segoe UI', system-ui, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #dcdad6; border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #c9c6c1; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { letter-spacing: -0.02em; }

/* ── LAYOUT ── */
.app { display: flex; height: 100vh; overflow: hidden; }

/* ── SIDEBAR (warm off-white) ── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--warm);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 100vh;
  border-right: 1px solid var(--border-subtle);
}
.sb-logo {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border-subtle);
}
.sb-logo .name { color: var(--text); font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.sb-logo .sub  { color: var(--text-secondary); font-size: 10px; letter-spacing: 0.2px; margin-top: 3px; font-weight: 500; }

.nav { padding: 10px; flex: 1; overflow-y: auto; }
.nav-sec { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); font-weight: 700; padding: 14px 10px 6px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.12s, color 0.12s;
  user-select: none;
  text-decoration: none;
}
.nav-item:hover { background: var(--warm-2); color: var(--text); }
.nav-item.active { background: var(--blue-tint); color: var(--primary); font-weight: 700; }
.nav-item svg { flex-shrink: 0; }

/* ── Collapsible nav groups ── */
.nav-group-header { user-select: none; }
.nav-caret {
  margin-left: auto;
  font-size: 11px;
  transition: transform .2s ease;
  opacity: 0.55;
}
.nav-group.open > .nav-group-header .nav-caret { transform: rotate(180deg); }
.nav-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}
.nav-group.open > .nav-sub { max-height: 320px; }
.nav-sub-item { padding-left: 34px; font-size: 13.5px; font-weight: 500; }

.sb-user {
  padding: 12px 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 11px;
}
.avatar {
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.sb-user .avatar { background: var(--primary); color: #fff; }
.sb-user .uname { color: var(--text); font-size: 13.5px; font-weight: 700; }
.sb-user .urole { color: var(--text-secondary); font-size: 11px; }
a.sb-user { cursor: pointer; transition: background .12s; }
a.sb-user:hover { background: var(--warm-2); }
a.sb-user.sb-user-active { background: var(--blue-tint); }

/* ── MAIN ── */
.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; background: var(--bg); }

.topbar {
  height: var(--topbar-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.tb-title { font-size: 18px; font-weight: 800; color: var(--text); letter-spacing: -0.01em; }
.tb-right { display: flex; align-items: center; gap: 12px; }
.notif-btn {
  position: relative;
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
}
.notif-btn:hover { color: var(--primary); border-color: var(--primary); }
.notif-dot {
  position: absolute; top: 8px; right: 8px;
  width: 9px; height: 9px;
  background: var(--error);
  border-radius: 50%;
  border: 2px solid var(--bg);
}
.content { flex: 1; overflow-y: auto; padding: 28px 32px; }

/* ── PAGES ── */
.page { display: none; }
.page.active { display: block; }

/* ── COMPONENTS ── */
.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  padding: 16px;
  box-shadow: var(--sh-raised);
}
.card + .card { margin-top: 16px; }
/* Inside grids, cards are spaced by gap — cancel the stacked-card margin
   so columns stay top-aligned. */
.grid-2 > .card + .card,
.grid-4 > .card + .card { margin-top: 0; }
.grid-2 { align-items: start; }

.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-title { font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.see-all { font-size: 13px; color: var(--primary); cursor: pointer; font-weight: 600; }
.see-all:hover { color: var(--primary-dark); text-decoration: underline; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }

.stat-card {
  background: var(--warm);
  border-radius: var(--radius-lg);
  border: none;
  padding: 18px 20px;
  transition: transform 0.12s, box-shadow 0.12s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--sh-overlay); }
.stat-label { font-size: 12px; color: var(--text-secondary); letter-spacing: 0; margin-bottom: 10px; font-weight: 600; }
.stat-value { font-size: 34px; font-weight: 800; color: var(--text); line-height: 1; letter-spacing: -0.02em; }
.stat-accent .stat-value { color: var(--primary); }
.stat-sub   { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

/* Alert */
.alert-box {
  background: #FDF6E9;
  border: 1px solid #F3D9A0;
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.alert-icon {
  width: 38px; height: 38px;
  background: #FBEBC8;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--warning-text);
}
.alert-title { font-size: 14px; font-weight: 600; color: var(--text); }
/* Notifikasi bisa diklik menuju hal yang dirujuk. Tautannya "diregangkan"
   menutupi seluruh kartu lewat ::after, supaya tombol "Tandai dibaca" tetap
   bisa diklik (tanpa menyarangkan form di dalam anchor — HTML tak sah). */
.alert-box { position: relative; transition: background .12s, border-color .12s; }
.alert-box:has(.alert-link):hover { border-color: var(--primary); }
.alert-link { color: inherit; text-decoration: none; }
.alert-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.alert-actions { position: relative; z-index: 1; }
.alert-body  { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.alert-time  { font-size: 12px; color: var(--text-muted); margin-left: auto; white-space: nowrap; }

/* Expand item */
.exp-item { border: 1px solid var(--border-subtle); border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: var(--sh-raised); }
.exp-item + .exp-item { margin-top: 10px; }
.exp-header { padding: 14px 16px; display: flex; align-items: center; gap: 12px; cursor: pointer; transition: background 0.12s; }
.exp-header:hover { background: var(--warm); }
.status-dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 11px; font-weight: 700;
}
.status-dot.done     { background: var(--success-bg); color: var(--success); }
.status-dot.pending  { background: var(--warm-2); color: var(--text-muted); }
.status-dot.rejected { background: var(--danger-bg); color: var(--error); }
.exp-title { font-size: 14px; font-weight: 600; color: var(--text); }
.exp-date  { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.chevron   { margin-left: auto; color: var(--text-muted); font-size: 11px; transition: transform 0.2s; }
.exp-item.open .chevron { transform: rotate(180deg); }
.exp-body { padding: 16px; border-top: 1px solid var(--border-subtle); background: var(--warm); display: none; }
.exp-item.open .exp-body { display: block; }
.field-label { font-size: 12px; color: var(--text-secondary); margin-bottom: 3px; letter-spacing: 0; font-weight: 600; }
.field-value { font-size: 14px; color: var(--text); line-height: 1.55; }
.field-group { margin-top: 12px; }
.file-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue-tint); color: var(--primary);
  padding: 7px 13px; border-radius: 6px;
  font-size: 13px; font-weight: 600;
  margin-top: 12px; cursor: pointer;
  border: none;
}
.file-badge:hover { background: #dbe8ff; }

/* note border accents (logbook) */
.note-blue { border-left: 3px solid var(--primary); padding-left: 12px; }
.note-blue .field-label { color: var(--primary); }
.note-green { border-left: 3px solid var(--success); padding-left: 12px; }
.note-green .field-label { color: var(--success); }

/* Badges / pills / tags */
.badge {
  display: inline-flex; align-items: center;
  padding: 4px 12px; border-radius: 9999px;
  font-size: 12px; font-weight: 600;
}
.badge.jadwal { background: #FDF1DD; color: var(--warning-text); }
.badge.baru   { background: var(--success-bg); color: var(--success); }
.badge.info   { background: var(--blue-tint); color: var(--primary); }

.pill { font-size: 12px; font-weight: 600; padding: 3px 11px; border-radius: 9999px; }
.pill.green { background: var(--success-bg); color: var(--success); }
.pill.blue  { background: var(--blue-tint); color: var(--primary); }
.pill.red   { background: var(--danger-bg); color: var(--error); }
.pill.amber { background: #FDF1DD; color: var(--warning-text); }

.tag { background: var(--warm); color: var(--text-secondary); padding: 4px 10px; border-radius: 4px; font-size: 12px; font-weight: 600; border: 1px solid var(--border-subtle); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  cursor: pointer; border: none;
  font-family: inherit;
  transition: background 0.12s, transform 0.1s, box-shadow 0.12s;
  letter-spacing: -0.01em;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 4px 12px rgba(0,97,255,.28); }
.btn-outline { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger  { background: var(--danger-bg); color: var(--error); }
.btn-danger:hover { background: #f6dcd9; }
.btn-ghost { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 6px; }

/* Search */
.search-bar {
  display: flex; align-items: center; gap: 9px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 6px; padding: 11px 14px;
  margin-bottom: 16px;
  color: var(--text-muted);
}
.search-bar:focus-within { border-color: var(--primary); }
.search-bar input { border: none; background: transparent; outline: none; flex: 1; font-size: 14px; color: var(--text); font-family: inherit; }
.search-bar input::placeholder { color: var(--text-muted); }

/* Filter chips */
.chips { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.chip {
  padding: 7px 16px; border-radius: 9999px;
  font-size: 13px; font-weight: 600;
  cursor: pointer; border: 1px solid var(--border);
  background: var(--bg); color: var(--text-secondary);
  transition: all 0.12s;
}
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.chip:hover:not(.active) { border-color: var(--primary); color: var(--primary); }

/* Page header */
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.page-title  { font-size: 24px; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.section-label { font-size: 15px; font-weight: 700; color: var(--text); margin: 24px 0 12px; display: flex; align-items: center; gap: 8px; letter-spacing: -0.01em; }
.section-label .count { color: var(--text-muted); font-weight: 500; }

/* Greeting */
.greeting-sub  { font-size: 14px; color: var(--text-secondary); margin-bottom: 4px; font-weight: 500; }
.greeting-name { font-size: 34px; font-weight: 800; color: var(--text); margin-bottom: 24px; letter-spacing: -0.025em; line-height: 1.1; }

/* ── LOWONGAN ── */
.job-card {
  background: var(--card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--sh-raised);
  transition: transform 0.12s, box-shadow 0.12s;
}
.job-card:hover { transform: translateY(-2px); box-shadow: var(--sh-overlay); }
.job-top  { display: flex; gap: 14px; align-items: flex-start; }
.job-logo {
  width: 48px; height: 48px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; flex-shrink: 0;
  background: var(--blue-tint); color: var(--primary);
}
.job-info { flex: 1; }
.job-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.job-title   { font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.job-company { font-size: 13px; color: var(--text-secondary); margin-top: 3px; display: flex; align-items: center; gap: 5px; }
.job-tags    { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.job-footer  {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}
.job-loc { font-size: 13px; color: var(--text-secondary); display: flex; align-items: center; gap: 5px; }

/* AI / feature banner — warm surface, bold heading */
.ai-banner {
  background: var(--warm);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 14px;
  cursor: pointer;
}
.ai-icon { width: 42px; height: 42px; background: var(--blue-tint); border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--primary); }
.ai-text h4 { color: var(--text); font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.ai-text p  { color: var(--text-secondary); font-size: 12.5px; margin-top: 2px; }
.ai-arrow   { margin-left: auto; color: var(--text-muted); font-size: 20px; }

/* ── SEMINAR ── */
.header-banner {
  background: var(--warm); border-radius: var(--radius-lg);
  padding: 24px 28px; margin-bottom: 20px;
  position: relative; overflow: hidden;
}
.header-banner h2 { color: var(--text); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.header-banner p  { color: var(--text-secondary); font-size: 14px; margin-top: 8px; line-height: 1.55; max-width: 560px; }

.seminar-card {
  background: var(--card); border: 1px solid var(--border-subtle); border-radius: var(--radius);
  padding: 16px; margin-bottom: 12px; cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s; box-shadow: var(--sh-raised);
}
.seminar-card:hover { transform: translateY(-2px); box-shadow: var(--sh-overlay); }
.sem-row   { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.sem-title { font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.sem-prog  { font-size: 12px; color: var(--text-secondary); margin-top: 3px; }
.sem-meta  { display: flex; gap: 32px; }
.sem-mi label { font-size: 11px; color: var(--text-muted); display: block; letter-spacing: 0; margin-bottom: 2px; }
.sem-mi span  { font-size: 13.5px; font-weight: 600; color: var(--text); }
.sem-tap { font-size: 12.5px; color: var(--primary); text-align: right; margin-top: 12px; font-weight: 600; }

/* ── NILAI (bold blue statement) ── */
.nilai-overall { background: var(--primary); border: none; border-radius: var(--radius-lg); padding: 32px 24px; margin-bottom: 24px; text-align: center; }
.nilai-overall-lbl { font-size: 12px; color: rgba(255,255,255,.8); letter-spacing: .02em; margin-bottom: 10px; font-weight: 600; }
.nilai-overall-val { font-size: 56px; font-weight: 800; color: #fff; line-height: 1; letter-spacing: -0.03em; }
.nilai-overall-sub { font-size: 13px; color: rgba(255,255,255,.85); margin-top: 10px; }
.nilai-card { background: var(--card); border: 1px solid var(--border-subtle); border-radius: var(--radius); padding: 6px 18px; box-shadow: var(--sh-raised); }
.nilai-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border-subtle); }
.nilai-row:last-child { border-bottom: none; }
.nilai-row .label { font-size: 14px; color: var(--text); }
.nilai-badge { background: var(--blue-tint); color: var(--primary); font-weight: 700; font-size: 14px; padding: 5px 15px; border-radius: 9999px; min-width: 50px; text-align: center; }
.nilai-badge.empty { background: var(--warm-2); color: var(--text-muted); font-weight: 600; }

/* ── Notifikasi ── */
.notif-item { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--border-subtle); border-radius: var(--radius); padding: 15px 16px; margin-bottom: 10px; box-shadow: var(--sh-raised); }
.notif-item.unread { border-left: 3px solid var(--primary); }
.notif-ic { width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--blue-tint); color: var(--primary); }
.notif-msg { font-size: 14px; font-weight: 600; color: var(--text); }
.notif-cat { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.notif-when { font-size: 12px; color: var(--text-muted); margin-left: auto; white-space: nowrap; }

/* ── PROFILE — warm hero, statement name ── */
.profile-hero {
  background: var(--bg); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  padding: 26px 28px; margin-bottom: 20px;
  display: flex; align-items: center; gap: 22px;
  box-shadow: var(--sh-raised);
}
.profile-av {
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 28px;
  flex-shrink: 0;
}
.profile-name  { color: var(--text); font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.profile-role  { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--primary); background: var(--blue-tint); padding: 3px 11px; border-radius: 9999px; }
.profile-email { color: var(--text-secondary); font-size: 13px; margin-top: 8px; }
.card-subtitle { font-size: 15px; font-weight: 700; margin: 18px 0 6px; padding-top: 18px; border-top: 1px solid var(--border-subtle); letter-spacing: -0.01em; }

.tabs { display: flex; border-bottom: 1px solid var(--border-subtle); margin-bottom: 16px; }
.tab  { padding: 10px 20px; font-size: 14px; cursor: pointer; color: var(--text-secondary); border-bottom: 2.5px solid transparent; margin-bottom: -1px; font-weight: 600; }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 700; }

.info-row { display: flex; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--border-subtle); }
.info-row:last-child { border-bottom: none; }
.info-key { font-size: 13px; color: var(--text-secondary); width: 150px; flex-shrink: 0; padding-top: 1px; }
.info-val { font-size: 14px; font-weight: 600; color: var(--text); }
.info-val.accent { color: var(--primary); }

.settings { display: flex; flex-direction: column; gap: 6px; }
.setting-row { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 10px; cursor: pointer; transition: background .12s; border: 1px solid transparent; width: 100%; text-align: left; background: none; font-family: inherit; }
.setting-row:hover { background: var(--warm); border-color: var(--border-subtle); }
.setting-ic { width: 38px; height: 38px; border-radius: 9px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--blue-tint); color: var(--primary); }
.setting-main { flex: 1; }
.setting-label { font-size: 14px; font-weight: 600; line-height: 1.2; color: var(--text); }
.setting-desc { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.setting-arr { color: var(--text-muted); flex-shrink: 0; }
.setting-row.danger .setting-ic { background: var(--danger-bg); color: var(--error); }
.setting-row.danger .setting-label { color: var(--error); }
.setting-row.danger:hover { background: #FCF1EF; border-color: #F3D8D4; }

/* ── MODALS ── */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 200; align-items: center; justify-content: center; backdrop-filter: blur(3px); padding: 16px; }
.modal-overlay.open { display: flex; }
.modal     { background: var(--card); border-radius: var(--radius-lg); padding: 24px; width: 430px; max-width: 95%; box-shadow: var(--sh-overlay); }
.modal-box { background: var(--card); border-radius: var(--radius-lg); width: 100%; max-width: 420px; box-shadow: 0 16px 48px rgba(0,0,0,0.22); padding: 24px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-title  { font-size: 16px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; letter-spacing: -0.01em; }
.modal-close  { background: var(--warm); border: none; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-size: 13px; color: var(--text-secondary); display: flex; align-items: center; justify-content: center; transition: background .15s; flex-shrink: 0; }
.modal-close:hover { background: var(--warm-2); color: var(--text); }
.modal-icon  { width: 36px; height: 36px; background: var(--blue-tint); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--primary); }
.form-group  { margin-bottom: 13px; }
.form-group label { font-size: 12px; color: var(--text-secondary); display: block; margin-bottom: 5px; letter-spacing: 0; font-weight: 600; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; font-size: 14px; color: var(--text);
  outline: none; font-family: inherit; transition: border-color 0.15s;
  background: var(--bg);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--primary); }
/* Checkbox & radio jangan ikut aturan input di atas — width:100% + padding
   membuatnya melar selebar baris dan mendorong teks di sebelahnya. */
.form-group input[type="checkbox"],
.form-group input[type="radio"] {
  width: auto; min-width: 0; padding: 0; margin: 0;
  flex-shrink: 0; accent-color: var(--primary);
  width: 16px; height: 16px; cursor: pointer;
}

/* Daftar pilihan (mis. mahasiswa penyaji di modal Buat Sesi Seminar).
   Selektor sengaja dibuat lebih khusus daripada `.form-group label` di atas —
   aturan itu memaksa display:block sehingga barisnya menumpuk ke bawah. */
.form-group .pick-list {
  max-height: 240px; overflow-y: auto;
  border: 1px solid var(--border); border-radius: 8px; padding: 4px; background: var(--bg);
}
.form-group .pick-list label.pick-row {
  display: flex; align-items: center; gap: 10px;
  margin: 0; padding: 8px 10px; border-radius: 6px;
  font-size: 13px; font-weight: 400; color: var(--text); text-align: left;
  letter-spacing: 0; cursor: pointer; transition: background .12s;
}
.form-group .pick-list label.pick-row + label.pick-row { margin-top: 2px; }
.form-group .pick-list label.pick-row:hover { background: var(--warm-2); }
.form-group .pick-list .pick-name {
  display: block; font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.3;
}
.form-group .pick-list .pick-sub {
  display: block; font-size: 11.5px; font-weight: 400; color: var(--text-muted); line-height: 1.3;
}
.form-group .pick-empty {
  padding: 16px 10px; font-size: 12.5px; color: var(--text-muted); text-align: center;
}
.form-group textarea { resize: vertical; min-height: 80px; }
.modal-footer { display: flex; gap: 9px; justify-content: flex-end; margin-top: 18px; }
.btn-cancel   { background: var(--bg); color: var(--text); border: 1px solid var(--border); }

/* ── SEMINAR DETAIL ── */
.detail-table td:first-child { color: var(--text-secondary); font-size: 13px; width: 90px; padding: 7px 0; vertical-align: top; }
.detail-table td:last-child  { font-size: 14px; font-weight: 600; color: var(--text); padding: 7px 0; }
.audience-row { display: flex; align-items: center; gap: 10px; padding: 10px; background: var(--warm); border-radius: 8px; }
.audience-row + .audience-row { margin-top: 7px; }

/* Empty state */
.empty-state { text-align: center; padding: 48px 24px; color: var(--text-secondary); }
.empty-state .em { font-size: 40px; margin-bottom: 12px; }

/* Icon boxes — center the SVG and let it inherit the box color */
.sc-icon, .qa-icon, .icon, .stat-box-icon, .icon-wrap, .sic, .assess-icon, .bic, .qic {
  display: flex; align-items: center; justify-content: center;
}
.sc-icon svg, .qa-icon svg, .icon svg, .stat-box-icon svg, .icon-wrap svg,
.sic svg, .assess-icon svg, .bic svg, .qic svg { display: block; }

/* ════════════════════════════════════════════════════════════
   MOTION — entrance, hover micro-interactions, accordion, modal
   All CSS-only; respects prefers-reduced-motion (see bottom).
   ════════════════════════════════════════════════════════════ */
:root { --ease: cubic-bezier(.22,.61,.36,1); }

@keyframes riseIn   { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes slideIn  { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes pop      { 0% { opacity: 0; transform: scale(.96); } 60% { transform: scale(1.01); } 100% { opacity: 1; transform: scale(1); } }
@keyframes overlayIn{ from { opacity: 0; } to { opacity: 1; } }
@keyframes expandIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Page content: top-level blocks rise in with a gentle stagger */
.content > * { animation: riseIn .5s var(--ease) both; }
.content > *:nth-child(1) { animation-delay: .02s; }
.content > *:nth-child(2) { animation-delay: .07s; }
.content > *:nth-child(3) { animation-delay: .12s; }
.content > *:nth-child(4) { animation-delay: .17s; }
.content > *:nth-child(5) { animation-delay: .22s; }
.content > *:nth-child(6) { animation-delay: .27s; }
.content > *:nth-child(7) { animation-delay: .32s; }
.content > *:nth-child(n+8) { animation-delay: .37s; }

/* Sidebar stays static on navigation — only its hover effects animate.
   (No entrance animation here so clicking a menu doesn't replay it.) */

/* Nav hover — subtle nudge (no layout shift) */
.nav-item { transition: background .15s var(--ease), color .15s var(--ease), transform .15s var(--ease); }
.nav-item:hover { transform: translateX(2px); }

/* Topbar search focus glow + notif button press */
.search-bar:focus-within { box-shadow: 0 0 0 3px rgba(0,97,255,.12); }
.notif-btn { transition: transform .12s var(--ease), color .15s, border-color .15s; }
.notif-btn:hover { transform: translateY(-1px); }
.notif-btn:active { transform: scale(.92); }

/* Buttons: lift + ripple */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary:hover { transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0) scale(.97); }
.ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,.5); transform: scale(0); animation: rip .55s linear; pointer-events: none; }
@keyframes rip { to { transform: scale(2.6); opacity: 0; } }

/* Accordion body reveal when opened */
.exp-item.open .exp-body { animation: expandIn .28s var(--ease); }
.chevron, .nav-caret { transition: transform .3s var(--ease); }

/* Modal entrance */
.modal-overlay.open { animation: overlayIn .2s ease; }
.modal-overlay.open .modal,
.modal-overlay.open .modal-box { animation: pop .3s var(--ease); }

/* Toast (for JS-driven notifications, if used) */
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }

/* Penanda "menunggu tanggapan" untuk dosen & pembimbing industri */
.nav-badge {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 9999px; background: var(--danger); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.dot-baru {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--danger); flex-shrink: 0; display: inline-block;
}
.tag-baru {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--danger-bg); color: var(--danger);
  font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 9999px;
}

/* Field password + tombol mata (komponen x-password-toggle) */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 42px; }
.pw-eye {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--text-muted);
  padding: 6px; display: flex; border-radius: 8px; line-height: 0;
}
.pw-eye:hover { color: var(--primary); }
/* Edge menyisipkan tombol mata bawaannya sendiri (::-ms-reveal) di dalam field
   password, muncul begitu field terisi/fokus. Berdampingan dengan .pw-eye
   hasilnya DUA ikon mata yang membingungkan — di Chrome tidak terjadi karena
   Chrome tak punya kontrol ini. Kita sembunyikan bawaannya dan tetap memakai
   tombol sendiri supaya perilakunya sama di semua browser.
   ::-ms-clear ikut dimatikan agar tombol "x" tak menabrak ikon mata. */
.pw-wrap input::-ms-reveal,
.pw-wrap input::-ms-clear { display: none; width: 0; height: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .content > *, .nav > *, .sb-logo, .sb-user { opacity: 1 !important; }
}
