/* ══════════════════════════════════════════════
   portal.css — SMK Negeri 3 Maumere v3
   Font: Plus Jakarta Sans (modern, clean)
   ══════════════════════════════════════════════ */

*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html, body {
  height: 100%;
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
  background: #f0f2f8;
  color: #1a1a2e;
  overflow-x: hidden;
}

/* ── SPLASH ── */
#splash {
  position: fixed; inset: 0; z-index: 9999;
  background: linear-gradient(155deg, #0d1b4b 0%, #1a3899 55%, #0d1b4b 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
}
.s-ring { position: relative; width: 128px; height: 128px; }
.s-ring svg { position: absolute; inset: 0; animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.s-inner {
  position: absolute; inset: 13px; border-radius: 50%;
  background: rgba(255,255,255,.08); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 36px rgba(245,241,17,.35);
}
.s-name { font-size: .98rem; font-weight: 800; letter-spacing: .07em; color: #fff; text-align: center; }
.s-sub  { font-size: .68rem; color: rgba(255,255,255,.4); letter-spacing: .12em; text-transform: uppercase; }
.s-bar-wrap { width: 170px; height: 3px; background: rgba(255,255,255,.12); border-radius: 99px; overflow: hidden; }
.s-bar { height: 100%; background: linear-gradient(90deg, #1a3899, #f5f111); animation: lb 2.4s ease forwards; border-radius: 99px; }
@keyframes lb    { from { width: 0 } to { width: 100% } }
@keyframes fadeSlideUp { from { opacity:0; transform:translateY(18px); } to { opacity:1; transform:translateY(0); } }

/* ── TOPBAR ── */
#app { display: none; min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 200;
  background: #fff;
  border-bottom: 1.5px solid #e4e8f5;
  box-shadow: 0 2px 16px rgba(26,56,153,.07);
  padding: 0 12px;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; gap: 8px; overflow: hidden;
}
.topbar-left  { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.sidebar-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 9px;
  background: #f0f2f8; border: none; cursor: pointer;
  color: #1a3899; font-size: 16px; transition: background .15s;
  flex-shrink: 0;
}
.sidebar-toggle:hover { background: #e4e8f5; }
@media (min-width: 768px) { .sidebar-toggle { display: none; } }
.topbar-logo {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, #1a3899, #2d54d4);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #f5f111; flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(26,56,153,.3);
}
/* Nama sekolah — dipotong dengan ellipsis di layar sempit */
.topbar-name {
  font-size: .100rem; font-weight: 700; color: #1a3899; line-height: 1.2;
  min-width: 0; overflow: hidden;
}
.topbar-name .t-title {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: block;
}
.topbar-name span { display: block; font-size: .6rem; font-weight: 500; color: #999; letter-spacing: .04em; white-space: nowrap; }
/* Mobile: perkecil sedikit agar muat, sembunyikan subtitle di HP <360px */
@media (max-width: 480px) { .topbar-name { font-size: .78rem; } }
@media (max-width: 360px) { .topbar-name span { display: none; } }

.topbar-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

.btn-install {
  display: none; align-items: center; gap: 6px;
  background: #f5f111; color: #1a3899;
  font-size: .68rem; font-weight: 700; font-family: inherit;
  padding: 6px 10px; border-radius: 8px; border: none; cursor: pointer;
  box-shadow: 0 2px 8px rgba(245,241,17,.4); transition: transform .15s;
  white-space: nowrap;
}
.btn-install:hover { transform: translateY(-1px); }
/* Sembunyikan teks "Install" di mobile, tampilkan ikon saja */
@media (max-width: 480px) { .btn-install .install-label { display: none; } }

.btn-login {
  display: flex; align-items: center; gap: 5px;
  background: #1a3899; color: #fff;
  font-size: .72rem; font-weight: 700; font-family: inherit;
  padding: 7px 12px; border-radius: 8px; border: none; cursor: pointer;
  transition: background .15s; white-space: nowrap;
}
.btn-login:hover { background: #243fbd; }

.topbar-user { display: flex; align-items: center; gap: 6px; }

/* Tombol logout — hanya ikon di mobile */
.btn-logout {
  display: flex; align-items: center; gap: 5px;
  background: #fef2f2; color: #dc2626;
  font-size: .68rem; font-weight: 700; font-family: inherit;
  padding: 6px 10px; border-radius: 8px; border: 1px solid #fecaca; cursor: pointer;
  transition: background .15s; white-space: nowrap;
}
.btn-logout:hover { background: #fee2e2; }
/* Di mobile sempit: sembunyikan teks "Keluar", tampilkan ikon saja */
@media (max-width: 480px) {
  .btn-logout .logout-label { display: none; }
  .btn-logout { padding: 6px 8px; }
}

/* Notif bell */
.btn-notif {
  position: relative; width: 36px; height: 36px; border-radius: 50%;
  background: #f0f2f8; border: none; cursor: pointer;
  color: #1a3899; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s; flex-shrink: 0;
}
.btn-notif:hover { background: #e4e8f5; }
.notif-badge {
  position: absolute; top: 1px; right: 1px;
  min-width: 16px; height: 16px;
  background: #dc2626; color: #fff;
  font-size: .55rem; font-weight: 800;
  border-radius: 99px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}

/* ── LAYOUT ── */
.layout { display: flex; position: relative; }

/* ── SIDEBAR ── */
.sidebar {
  width: 240px; flex-shrink: 0;
  background: #fff;
  border-right: 1.5px solid #e4e8f5;
  height: calc(100vh - 60px);
  position: sticky; top: 60px;
  overflow-y: auto; overflow-x: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s cubic-bezier(.4,0,.2,1), width .25s;
  z-index: 150;
}
/* Mobile: sidebar slide-in */
@media (max-width: 767px) {
  .sidebar {
    position: fixed; top: 60px; left: 0;
    height: calc(100vh - 60px);
    transform: translateX(-100%);
    box-shadow: 4px 0 24px rgba(0,0,0,.12);
    z-index: 400;
  }
  .sidebar.open { transform: translateX(0); }
  .bottom-nav   { display: flex !important; }
  #app          { padding-bottom: 66px; }
}
@media (min-width: 768px) {
  .sidebar { display: flex; }
  .bottom-nav { display: none !important; }
  #app { padding-bottom: 0; }
}
/* Sidebar collapsed (desktop toggle) */
.sidebar.collapsed { width: 64px; }
.sidebar.collapsed .sidebar-nav-item span,
.sidebar.collapsed .sidebar-section-label,
.sidebar.collapsed .sidebar-user-card,
.sidebar.collapsed .sidebar-footer { opacity: 0; pointer-events: none; }
.sidebar.collapsed .sidebar-nav-item { padding: 12px; justify-content: center; }
.sidebar.collapsed .sidebar-nav-item i { margin: 0; }

.sidebar-overlay {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,.35); backdrop-filter: blur(2px);
}
.sidebar-overlay.show { display: block; }

/* Sidebar user card */
.sidebar-user-card {
  margin: 12px 12px 4px; padding: 14px;
  background: linear-gradient(135deg, #1a3899, #2d54d4);
  border-radius: 14px; color: #fff;
  overflow: hidden;
}
.sidebar-uc-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.sidebar-uc-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 800; color: #f5f111;
  flex-shrink: 0; overflow: hidden; border: 2px solid rgba(255,255,255,.3);
}
.sidebar-uc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-uc-name { font-size: .8rem; font-weight: 700; line-height: 1.3; }
.sidebar-uc-role {
  font-size: .6rem; background: rgba(245,241,17,.25);
  color: #f5f111; padding: 2px 8px; border-radius: 99px;
  text-transform: capitalize; display: inline-block; margin-top: 2px; font-weight: 600;
}
.sidebar-uc-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.sidebar-uc-btn {
  flex: 1; min-width: 80px; padding: 6px 8px;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px; color: #fff; font-size: .65rem; font-weight: 600;
  cursor: pointer; font-family: inherit; text-align: center;
  transition: background .15s; display: flex; align-items: center; justify-content: center; gap: 5px;
}
.sidebar-uc-btn:hover { background: rgba(255,255,255,.25); }

.sidebar-section-label {
  font-size: .6rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: #bbb; padding: 16px 18px 6px;
}
.sidebar-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 18px; cursor: pointer;
  font-size: .82rem; font-weight: 600; color: #555;
  border-left: 3px solid transparent;
  transition: all .15s;
  background: none; border-top: none; border-right: none; border-bottom: none;
  width: 100%; font-family: inherit; text-align: left;
  border-radius: 0;
}
.sidebar-nav-item i { width: 18px; text-align: center; font-size: .9rem; flex-shrink: 0; }
.sidebar-nav-item span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-nav-item:hover { background: #f0f2f8; color: #1a3899; }
.sidebar-nav-item.active { background: #edf0ff; color: #1a3899; border-left-color: #1a3899; font-weight: 700; }
.sidebar-nav-item .nav-notif-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #dc2626; margin-left: auto; flex-shrink: 0;
}
.sidebar-footer {
  padding: 14px 18px; border-top: 1px solid #e4e8f5;
  font-size: .6rem; color: #ccc; display: flex; justify-content: space-between; margin-top: auto;
}

/* ── MAIN ── */
.main { flex: 1; padding: 20px; max-width: 100%; min-width: 0; }
@media (max-width: 480px) {
  .main { padding: 14px 12px; }
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, #1a3899 0%, #2d54d4 100%);
  border-radius: 18px; padding: 26px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 24px;
  box-shadow: 0 6px 28px rgba(26,56,153,.22);
  position: relative; overflow: hidden;
}
@media (max-width: 480px) {
  .hero { padding: 20px 18px; border-radius: 14px; }
  .hero-text h1 { font-size: 1.05rem; }
  .hero-icon { font-size: 2rem; }
}
.hero::before {
  content: ''; position: absolute; right: -20px; top: -40px;
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(245,241,17,.06);
}
.hero::after {
  content: ''; position: absolute; right: 60px; bottom: -30px;
  width: 100px; height: 100px; border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.hero-text h1 { font-size: 1.25rem; font-weight: 800; color: #fff; margin-bottom: 4px; }
.hero-text h1 span { color: #f5f111; }
.hero-text p { font-size: .7rem; color: rgba(255,255,255,.55); letter-spacing: .06em; text-transform: uppercase; }
.hero-icon { font-size: 2.6rem; color: rgba(245,241,17,.25); z-index: 1; flex-shrink: 0; }
.hero-user-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(245,241,17,.15); border: 1px solid rgba(245,241,17,.3);
  border-radius: 99px; padding: 4px 12px 4px 4px; margin-bottom: 10px;
}
.hero-user-chip-dot {
  width: 22px; height: 22px; border-radius: 50%;
  background: #f5f111; color: #1a3899;
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem; font-weight: 800; flex-shrink: 0;
}
.hero-user-chip span { font-size: .7rem; color: #f5f111; font-weight: 700; }

/* ── SECTION HEADER ── */
.sec-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; margin-top: 22px; }
.sec-head:first-child { margin-top: 0; }
.sec-head .dot { width: 7px; height: 7px; border-radius: 50%; background: #1a3899; flex-shrink: 0; }
.sec-head span { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #999; }
.sec-head .line { flex: 1; height: 1px; background: #e8eaf5; }

/* ── APP GRID ── */
.app-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 4px; }
@media (min-width: 480px)  { .app-grid { grid-template-columns: repeat(5,1fr); } }
@media (min-width: 768px)  { .app-grid { grid-template-columns: repeat(5,1fr); } }
@media (min-width: 1024px) { .app-grid { grid-template-columns: repeat(7,1fr); } }
@media (min-width: 1280px) { .app-grid { grid-template-columns: repeat(9,1fr); } }

.app-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  cursor: pointer; text-decoration: none; padding: 14px 8px 12px;
  background: #fff; border-radius: 16px; border: 1.5px solid #e8eaf5;
  transition: all .18s; animation: popIn .3s ease both;
}
@keyframes popIn { from { opacity:0; transform:scale(.8) translateY(8px); } to { opacity:1; transform:scale(1) translateY(0); } }
.app-item:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(26,56,153,.12); border-color: #c5cef5; }
.app-item:active { transform: scale(.95); }
.app-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 21px; position: relative; flex-shrink: 0;
  transition: transform .18s;
}
.app-item:hover .app-icon { transform: scale(1.08); }
.app-label { font-size: .62rem; font-weight: 700; text-align: center; color: #444; line-height: 1.3; max-width: 70px; }
.badge-new { position: absolute; top: -4px; right: -4px; width: 10px; height: 10px; border-radius: 50%; background: #f5f111; border: 2px solid #fff; }

/* Icon colours */
.ic-green  { background: #e8fdf5; color: #059669; }
.ic-blue   { background: #edf0ff; color: #1a3899; }
.ic-yellow { background: #fffbeb; color: #d97706; }
.ic-red    { background: #fef2f2; color: #dc2626; }
.ic-purple { background: #f5f3ff; color: #7c3aed; }
.ic-teal   { background: #f0fdfa; color: #0d9488; }
.ic-pink   { background: #fdf2f8; color: #db2777; }
.ic-indigo { background: #eef2ff; color: #4f46e5; }
.ic-orange { background: #fff7ed; color: #ea580c; }
.ic-cyan   { background: #ecfeff; color: #0891b2; }
.ic-lime   { background: #f7fee7; color: #65a30d; }
.ic-sky    { background: #f0f9ff; color: #0284c7; }

/* ── TAB SECTIONS ── */
.tab-section { display: none; }
.tab-section.active { display: block; }

/* ── BIODATA SECTION ── */
.biodata-container { max-width: 680px; }
.biodata-card {
  background: #fff; border-radius: 16px;
  border: 1.5px solid #e4e8f5;
  padding: 24px; margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(26,56,153,.05);
}
.biodata-card-title {
  font-size: .78rem; font-weight: 700; color: #1a3899;
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 18px; display: flex; align-items: center; gap: 8px;
}
.biodata-card-title i { font-size: .9rem; }
.biodata-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid #f0f2f8;
}
.biodata-row:last-child { border-bottom: none; padding-bottom: 0; }
.biodata-label { font-size: .7rem; font-weight: 600; color: #999; min-width: 120px; flex-shrink: 0; padding-top: 1px; }
.biodata-value { font-size: .8rem; font-weight: 600; color: #1a1a2e; flex: 1; word-break: break-word; overflow-wrap: anywhere; }
.biodata-value.empty { color: #ccc; font-style: italic; font-weight: 400; }

/* Mobile: label di atas value agar tidak terpotong */
@media (max-width: 480px) {
  .biodata-container { max-width: 100%; }
  .biodata-card { padding: 16px; }
  .biodata-row { flex-direction: column; gap: 3px; padding: 10px 0; }
  .biodata-label { min-width: unset; font-size: .65rem; }
  .biodata-value { font-size: .82rem; }
  .biodata-avatar-wrap { flex-direction: column; align-items: flex-start; gap: 12px; }
}
.biodata-avatar-wrap {
  display: flex; align-items: center; gap: 16px; margin-bottom: 20px;
  padding-bottom: 16px; border-bottom: 1px solid #f0f2f8;
}
.biodata-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, #1a3899, #2d54d4);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 800; color: #f5f111;
  overflow: hidden; flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(26,56,153,.2);
}
.biodata-avatar img { width: 100%; height: 100%; object-fit: cover; }
.biodata-avatar-info h3 { font-size: 1rem; font-weight: 800; color: #1a1a2e; }
.biodata-avatar-info .role-chip {
  display: inline-block; margin-top: 4px;
  font-size: .65rem; font-weight: 700; padding: 3px 10px;
  border-radius: 99px; text-transform: capitalize; background: #edf0ff; color: #1a3899;
}
.btn-ajukan {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #1a3899, #2d54d4); color: #fff;
  font-size: .82rem; font-weight: 700; font-family: inherit;
  padding: 11px 20px; border-radius: 10px; border: none; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 16px rgba(26,56,153,.25);
}
.btn-ajukan:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26,56,153,.35); }
.btn-secondary {
  display: flex; align-items: center; gap: 8px;
  background: #f0f2f8; color: #555;
  font-size: .78rem; font-weight: 600; font-family: inherit;
  padding: 9px 16px; border-radius: 10px; border: 1px solid #e4e8f5; cursor: pointer;
  transition: background .15s;
}
.btn-secondary:hover { background: #e4e8f5; color: #1a3899; }

/* Form pengajuan */
.ajukan-form { margin-top: 20px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: .72rem; font-weight: 600; color: #666; margin-bottom: 5px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; background: #f5f7ff; border: 1.5px solid #e0e5f5;
  border-radius: 9px; padding: 10px 13px; color: #1a1a2e;
  font-size: .85rem; font-family: inherit; outline: none;
  transition: border-color .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: #1a3899; }
.form-group textarea { resize: vertical; min-height: 70px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }
.field-changed { border-color: #1a3899 !important; background: #edf0ff !important; }

/* ── INFO AKADEMIK SECTION ── */
.info-table {
  width: 100%; border-collapse: collapse;
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(26,56,153,.05);
  border: 1.5px solid #e4e8f5;
}
.info-table th {
  background: #1a3899; color: #fff;
  font-size: .68rem; font-weight: 700; letter-spacing: .07em;
  padding: 11px 14px; text-align: left; text-transform: uppercase;
}
.info-table td { font-size: .78rem; padding: 11px 14px; border-bottom: 1px solid #f0f2f8; color: #444; }
.info-table tr:last-child td { border-bottom: none; }
.info-table tr:hover td { background: #f8f9ff; }
.info-aktif { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: .62rem; font-weight: 700; }
.info-aktif.ya  { background: #e8fdf5; color: #059669; }
.info-aktif.tdk { background: #f5f5f5; color: #999; }

/* Pengajuan admin list */
.pengajuan-item {
  background: #fff; border-radius: 14px; padding: 16px 18px;
  border: 1.5px solid #e4e8f5; margin-bottom: 10px;
  display: flex; align-items: center; gap: 12px;
  cursor: pointer; transition: all .15s;
}
.pengajuan-item:hover { border-color: #1a3899; box-shadow: 0 4px 16px rgba(26,56,153,.1); }
.pengajuan-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: #edf0ff; color: #1a3899;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0;
}
.pengajuan-meta { flex: 1; min-width: 0; }
.pengajuan-meta .nama { font-size: .82rem; font-weight: 700; color: #1a1a2e; }
.pengajuan-meta .info { font-size: .7rem; color: #888; margin-top: 2px; }
.pengajuan-time { font-size: .65rem; color: #bbb; flex-shrink: 0; }
.status-chip { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: .62rem; font-weight: 700; }
.status-menunggu  { background: #fffbeb; color: #d97706; }
.status-disetujui { background: #e8fdf5; color: #059669; }
.status-ditolak   { background: #fef2f2; color: #dc2626; }

/* Diff table inside modal */
.diff-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: .78rem; }
.diff-table th { font-size: .65rem; font-weight: 700; color: #888; text-transform: uppercase; padding: 6px 10px; background: #f8f9ff; border: 1px solid #e4e8f5; }
.diff-table td { padding: 8px 10px; border: 1px solid #e4e8f5; }
.diff-table .field-label { font-weight: 600; color: #555; width: 130px; }
.diff-table .val-lama { color: #dc2626; background: #fef2f2; }
.diff-table .val-baru  { color: #059669; background: #f0fdf4; }
.diff-table .val-edit  { background: #fffbeb; }

/* ── NOTIFIKASI PANEL ── */
.notif-panel {
  position: fixed; top: 60px; right: 0;
  width: 340px; max-height: calc(100vh - 80px);
  background: #fff; border: 1.5px solid #e4e8f5;
  border-radius: 0 0 0 18px;
  box-shadow: -4px 4px 24px rgba(0,0,0,.12);
  z-index: 350; overflow: hidden; display: flex; flex-direction: column;
  transform: translateX(110%); transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.notif-panel.open { transform: translateX(0); }
@media (max-width: 400px) { .notif-panel { width: 100vw; border-radius: 0; } }
.notif-backdrop {
  display: none; position: fixed; inset: 0; z-index: 340;
}
.notif-backdrop.show { display: block; }
.notif-panel-header {
  padding: 14px 16px; border-bottom: 1px solid #e4e8f5;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .85rem; font-weight: 700; color: #1a1a2e; flex-shrink: 0;
}
.notif-mark-all {
  font-size: .65rem; color: #1a3899; background: none; border: none;
  cursor: pointer; font-family: inherit; font-weight: 600;
}
#notifList { overflow-y: auto; flex: 1; }
.notif-item {
  padding: 12px 16px; border-bottom: 1px solid #f0f2f8;
  cursor: pointer; transition: background .12s; display: flex; gap: 10px; align-items: flex-start;
}
.notif-item:hover { background: #f8f9ff; }
.notif-item.unread { background: #fafbff; }
.notif-item-icon {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; flex-shrink: 0;
}
.notif-info    .notif-item-icon { background: #edf0ff; color: #1a3899; }
.notif-sukses  .notif-item-icon { background: #e8fdf5; color: #059669; }
.notif-peringatan .notif-item-icon { background: #fef2f2; color: #dc2626; }
.notif-pengajuan  .notif-item-icon { background: #fffbeb; color: #d97706; }
.notif-sistem     .notif-item-icon { background: #f5f3ff; color: #7c3aed; }
.notif-item-body { flex: 1; min-width: 0; }
.notif-item-title { font-size: .75rem; font-weight: 700; color: #1a1a2e; margin-bottom: 2px; }
.notif-item-msg   { font-size: .68rem; color: #777; line-height: 1.4; }
.notif-item-time  { font-size: .6rem; color: #bbb; margin-top: 3px; }
.notif-unread-dot { width: 8px; height: 8px; border-radius: 50%; background: #1a3899; flex-shrink: 0; margin-top: 4px; }
.notif-empty { padding: 32px; text-align: center; color: #ccc; font-size: .8rem; }

/* ── BOTTOM NAV ── */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 300;
  background: #fff; border-top: 1.5px solid #e4e8f5;
  box-shadow: 0 -4px 20px rgba(0,0,0,.06);
  display: flex; align-items: center; justify-content: space-around;
  padding: 6px 0 max(6px,env(safe-area-inset-bottom)); height: 66px;
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  cursor: pointer; flex: 1; transition: all .15s;
  background: none; border: none; color: #bbb; font-family: inherit; position: relative;
}
.nav-item i    { font-size: 19px; }
.nav-item span { font-size: .55rem; font-weight: 700; letter-spacing: .03em; }
.nav-item.active { color: #1a3899; }
.nav-item .nav-dot {
  position: absolute; top: 0; right: calc(50% - 14px);
  width: 7px; height: 7px; border-radius: 50%;
  background: #dc2626; border: 2px solid #fff;
}

/* ── LOGIN MODAL ── */
#loginModal {
  display: none; position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,.45); backdrop-filter: blur(6px);
  align-items: flex-end; justify-content: center;
}
@media (min-width: 500px) { #loginModal { align-items: center; } }
#loginModal.open { display: flex; }
.modal-sheet {
  background: #fff; border-radius: 22px 22px 0 0;
  padding: 26px 22px 30px; width: 100%; max-width: 420px;
  box-shadow: 0 -8px 40px rgba(0,0,0,.15); position: relative;
}
@media (min-width: 500px) { .modal-sheet { border-radius: 18px; box-shadow: 0 8px 40px rgba(0,0,0,.2); } }
.modal-drag  { width: 36px; height: 4px; background: #e0e0e0; border-radius: 99px; margin: 0 auto 18px; }
.modal-title { font-size: 1rem; font-weight: 800; color: #1a3899; margin-bottom: 3px; }
.modal-sub   { font-size: .7rem; color: #999; margin-bottom: 20px; }
.modal-close-btn {
  position: absolute; top: 14px; right: 14px;
  background: #f1f4fb; border: none; border-radius: 50%;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  color: #888; cursor: pointer; font-size: .85rem; transition: background .15s;
}
.modal-close-btn:hover { background: #e4e8f5; }
.mf-label { font-size: .7rem; color: #666; margin-bottom: 5px; display: block; font-weight: 600; }
.mf-input {
  width: 100%; background: #f5f7ff; border: 1.5px solid #e0e5f5;
  border-radius: 9px; padding: 11px 13px; color: #1a1a2e;
  font-size: .88rem; font-family: inherit; outline: none; margin-bottom: 11px;
  transition: border-color .2s;
}
.mf-input:focus { border-color: #1a3899; }
.mf-btn {
  width: 100%; background: linear-gradient(135deg,#1a3899,#2d54d4); color: #fff;
  font-size: .88rem; font-weight: 700; padding: 12px; border-radius: 9px;
  border: none; cursor: pointer; font-family: inherit; margin-top: 2px;
  transition: opacity .15s; box-shadow: 0 4px 16px rgba(26,56,153,.3);
}
.mf-btn:hover   { opacity: .92; }
.mf-btn:disabled { background: #93a8d4; cursor: not-allowed; box-shadow: none; }
.mf-error {
  background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px;
  padding: 9px 12px; font-size: .75rem; color: #dc2626; margin-bottom: 10px; display: none;
}
.mf-error.show { display: block; }

/* Google button */
.btn-google-login {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 11px; margin-bottom: 14px;
  border: 1.5px solid #e0e5f5; border-radius: 9px;
  background: #fff; color: #333;
  font-size: .85rem; font-weight: 700; font-family: inherit;
  cursor: pointer; text-decoration: none;
  transition: background .15s, box-shadow .15s;
}
.btn-google-login:hover { background: #f5f7ff; box-shadow: 0 2px 10px rgba(26,56,153,.1); }
.mf-divider {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
  color: #bbb; font-size: .68rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase;
}
.mf-divider::before, .mf-divider::after { content: ''; flex: 1; height: 1px; background: #e8eaf5; }

/* ── TOAST ── */
#toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%);
  background: #1a3899; color: #fff; padding: 10px 20px; border-radius: 10px;
  font-size: .75rem; z-index: 9000; opacity: 0; pointer-events: none;
  transition: opacity .25s; white-space: nowrap;
  box-shadow: 0 4px 16px rgba(26,56,153,.35); font-weight: 600;
}
#toast.show  { opacity: 1; }
#toast.error-toast { background: #dc2626; }
@media (min-width: 768px) { #toast { bottom: 24px; } }

/* ── UTILS ── */
.d-flex { display: flex; }
.gap-8  { gap: 8px; }
.flex-wrap { flex-wrap: wrap; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.text-muted { color: #999; font-size: .72rem; }

/* Loading spinner */
.spin-wrap { display: flex; align-items: center; justify-content: center; padding: 48px; }
.spin {
  width: 32px; height: 32px; border-radius: 50%;
  border: 3px solid #e4e8f5; border-top-color: #1a3899;
  animation: spin .7s linear infinite;
}