/* ============================================================
   assets/css/main.css  — Portal Kepegawaian
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --bg:        #eef2ff;
  --surface:   #ffffff;
  --surface2:  #f0f4f8;
  --border:    #e0e4ea;
  --accent:    #d4890a;
  --accent2:   #c05a10;
  --text:      #1a202c;
  --text-muted:#6b7280;
  --sidebar-w: 230px;
  --green:     #16a34a;
  --blue:      #2563eb;
  --red:       #dc2626;
  --topbar-h:  32px;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: #0a1628;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  overflow: hidden;
}

/* ── TOPBAR ──────────────────────────────────────────────────── */
:root {
  --topbar-h: 44px;
}
.pub-topbar {
  background: #0f2038;
  border-bottom: 1px solid rgba(255,255,255,.10);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  left: var(--sidebar-w);
  right: 0;
  z-index: 200;
  height: var(--topbar-h);
}

/* Breadcrumb di kiri */
.pub-breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  letter-spacing: 0.01em;
}
.pub-breadcrumb-home {
  color: rgba(255,255,255,.55);
  cursor: pointer;
  transition: color .2s;
  font-weight: 400;
}
.pub-breadcrumb-home:hover { color: #f59e0b; }
.pub-breadcrumb-sep  { color: rgba(255,255,255,.30); font-weight: 300; }
.pub-breadcrumb-current {
  color: #fff;
  font-weight: 700;
}

/* ── SIDEBAR ─────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: #0a1628;
  border-right: 1px solid rgba(255,255,255,.06);
  display: flex; flex-direction: column;
  position: fixed; left:0; top:0; bottom:0;
  z-index: 250; overflow: hidden;
}

.logo-area {
  padding: 16px 14px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-align: center;
}
.logo-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg,#1e3a8a,#2563eb);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin: 0 auto 10px;
  box-shadow: 0 4px 18px rgba(37,99,235,.45);
  flex-shrink: 0;
}
/* wrapper lingkaran untuk gambar logo — support PNG/JPG/SVG/WEBP */
.logo-icon-penta {
  width: 68px; height: 68px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center;
  background: #0f1e4a;
  box-shadow: 0 4px 18px rgba(15,30,74,.55);
  flex-shrink: 0;
  padding: 0;
}
.logo-icon-penta img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  padding: 4px;
  box-sizing: border-box;
  clip-path: none;
  shape-rendering: auto;
}
.logo-title {
  font-size: 12.5px; font-weight: 800;
  color: #fff; line-height: 1.3;
  letter-spacing: .2px;
  margin-bottom: 4px;
}
.logo-sub {
  font-size: 11px; color: #f59e0b;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 800;
  margin-bottom: 4px;
}
.logo-resmi {
  display: inline-block;
  font-size: 9px;
  color: #fff;
  letter-spacing: 3px;
  font-weight: 700;
  margin-top: 5px;
  font-style: normal;
  background-color: #d97706;
  padding: 3px 12px;
  border-radius: 999px;
}

.nav-section {
  padding: 16px 14px 5px;
  font-size: 10px; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,.3);
}
.nav-links { flex:1; overflow-y:auto; padding:0 10px; }
.nav-links::-webkit-scrollbar { width:3px; }
.nav-links::-webkit-scrollbar-thumb { background:rgba(255,255,255,.15); border-radius:3px; }

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px 9px 14px;
  border-radius: 8px;
  cursor: pointer; margin-bottom: 2px;
  color: rgba(255,255,255,.6);
  font-size: 13.5px; font-weight: 500;
  border: none;
  transition: all .2s ease;
  text-decoration: none;
  position: relative;
}
.nav-item span {
  flex: 1;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-item:hover {
  background: rgba(245,158,11,.12);
  color: #fff;
}
.nav-item.active {
  background: rgba(245,158,11,.22);
  color: #f59e0b;
  font-weight: 600;
  border-left: 3px solid #f59e0b;
}
.nav-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  background: rgba(255,255,255,.08);
  flex-shrink: 0;
  transition: background .2s;
}
.nav-item:hover .nav-icon  { background: rgba(245,158,11,.18); }
.nav-item.active .nav-icon { background: rgba(245,158,11,.3); }

/* Dot aktif — bulat kuning di kanan */
.nav-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: transparent;
  margin-left: auto; flex-shrink: 0;
  transition: background .2s, box-shadow .2s;
}
.nav-item.active .nav-dot {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245,158,11,.8);
}

/* Ripple effect on nav click */
.nav-item {
  overflow: hidden;
}
.nav-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(245,158,11,.35);
  transform: scale(0);
  animation: nav-ripple-anim .5s linear;
  pointer-events: none;
}
@keyframes nav-ripple-anim {
  to { transform: scale(4); opacity: 0; }
}

/* Nav click scale bounce */
.nav-item:active {
  transform: scale(.97);
}

.admin-section {
  padding:14px 10px; border-top:1px solid rgba(255,255,255,.1); margin-top:auto;
}
.admin-user-info {
  display:flex; align-items:center; gap:10px;
  padding:10px 12px; margin-bottom:10px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.15); border-radius:10px;
}
.admin-user-avatar {
  width:34px; height:34px; border-radius:50%;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  display:flex; align-items:center; justify-content:center;
  font-size:14px; font-weight:700; color:#fff; flex-shrink:0;
}
.admin-user-name { font-size:13px; font-weight:600; color:#fff; }
.admin-user-role { font-size:11px; color:rgba(255,255,255,.5); }

.btn-sidebar {
  width:100%; padding:10px;
  border:none; border-radius:8px; cursor:pointer;
  font-family:'DM Sans',sans-serif; font-size:14px; font-weight:600;
  display:flex; align-items:center; justify-content:center; gap:8px;
  transition: opacity .2s, transform .1s;
}
.btn-sidebar-login {
  background:linear-gradient(135deg,var(--accent),var(--accent2)); color:#fff;
}
.btn-sidebar-logout {
  background:rgba(248,81,73,.12); border:1px solid rgba(248,81,73,.3);
  color:#ff6b6b; margin-top:8px;
}
.btn-sidebar:hover { opacity:.9; transform:translateY(-1px); }

/* ── MAIN AREA ───────────────────────────────────────────────── */
.main {
  background: #0a1628;
  margin-left: var(--sidebar-w);
  margin-top: var(--topbar-h);
  flex: 1; overflow-y: auto;
  height: calc(100vh - var(--topbar-h));
  padding-bottom: 50px;
}
.main::-webkit-scrollbar { width:5px; }
.main::-webkit-scrollbar-thumb { background:var(--border); border-radius:3px; }

.page { display:none; min-height:calc(100vh - var(--topbar-h)); background: #0a1628; }
.page.active { display:block; animation:fadeIn .4s ease; }
@keyframes fadeIn {
  from { opacity:0; transform:translateY(8px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ── BERANDA BANNER ──────────────────────────────────────────── */
.beranda-banner {
  display:flex; align-items:center; justify-content:space-between;
  padding:52px 60px 44px; position:relative; overflow:hidden;
  background:linear-gradient(135deg,#1e3a8a,#1d4ed8 40%,#0369a1 75%,#0891b2);
  min-height:280px;
}
.beranda-banner-bg {
  position:absolute; inset:0;
  background:
    radial-gradient(ellipse 70% 80% at 10% 50%,rgba(255,255,255,.15),transparent 60%),
    radial-gradient(ellipse 50% 60% at 90% 20%,rgba(8,145,178,.25),transparent 60%);
}
.beranda-banner-content { position:relative; z-index:2; max-width:560px; }
.beranda-welcome-badge {
  display:inline-flex; align-items:center; gap:6px;
  background:rgba(255,255,255,.2); border:1px solid rgba(255,255,255,.4);
  color:#fff; padding:5px 16px; border-radius:20px;
  font-size:12px; font-weight:700; text-transform:uppercase;
  letter-spacing:1.2px; margin-bottom:20px;
  animation:slideDown .5s ease .1s both;
}
.beranda-title {
  font-family:'Playfair Display',serif;
  font-size:clamp(26px,3.5vw,44px); font-weight:700; line-height:1.15;
  color:#fff; margin-bottom:14px; animation:slideDown .5s ease .2s both;
}
.beranda-title span {
  background:linear-gradient(135deg,#bae6fd,#7dd3fc,#fff);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
}
.beranda-desc {
  color:rgba(255,255,255,.92); font-size:15px; line-height:1.7;
  margin-bottom:26px; animation:slideDown .5s ease .3s both;
}
.beranda-actions { display:flex; gap:12px; flex-wrap:wrap; animation:slideDown .5s ease .4s both; }
.beranda-btn-primary {
  padding:10px 22px;
  background:linear-gradient(135deg,#d4890a,#c05a10);
  border:none; border-radius:10px; color:#fff;
  font-size:14px; font-weight:700; cursor:pointer;
  font-family:'DM Sans',sans-serif;
  transition:all .2s; box-shadow:0 4px 15px rgba(212,137,10,.35);
}
.beranda-btn-primary:hover { transform:translateY(-2px); box-shadow:0 6px 20px rgba(212,137,10,.45); }
.beranda-btn-secondary {
  padding:10px 22px; background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.25); border-radius:10px;
  color:#fff; font-size:14px; font-weight:600; cursor:pointer;
  font-family:'DM Sans',sans-serif; transition:all .2s; backdrop-filter:blur(4px);
}
.beranda-btn-secondary:hover { background:rgba(255,255,255,.18); transform:translateY(-2px); }

.banner-icon-main {
  font-size:72px; z-index:1;
  animation:float 3s ease-in-out infinite;
  filter:drop-shadow(0 8px 24px rgba(0,0,0,.3));
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@keyframes slideDown { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }

/* ── STATS ────────────────────────────────────────────────────── */
.beranda-section { padding:36px 60px 0; }
.beranda-section-header { display:flex; align-items:center; gap:14px; margin-bottom:20px; }
.beranda-section-label {
  font-size:13px; font-weight:700; text-transform:uppercase;
  letter-spacing:1.5px; color:#1d4ed8; white-space:nowrap;
}
.beranda-section-line { flex:1; height:1px; background:linear-gradient(90deg,var(--border),transparent); }

.beranda-stats-row {
  display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:28px;
}
.bstat-main {
  border-radius:16px; padding:20px 18px;
  display:flex; align-items:center; gap:14px;
  position:relative; overflow:hidden;
  transition:transform .2s,box-shadow .2s;
}
.bstat-main:hover { transform:translateY(-3px); box-shadow:0 10px 28px rgba(0,0,0,.12); }
.dosen-color    { background:linear-gradient(135deg,#eff6ff,#dbeafe); border:1px solid #bfdbfe; }
.tendik-color   { background:linear-gradient(135deg,#ecfeff,#cffafe); border:1px solid #a5f3fc; }
.penunjang-color{ background:linear-gradient(135deg,#f0f9ff,#e0f2fe); border:1px solid #bae6fd; }
.serdos-color   { background:linear-gradient(135deg,#eef2ff,#e0e7ff); border:1px solid #c7d2fe; }
.bstat-main-icon {
  font-size:30px; width:54px; height:54px; border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,.6); flex-shrink:0;
}
.bstat-main-num {
  font-family:'Playfair Display',serif; font-size:36px; font-weight:700;
  line-height:1; color:var(--text);
}
.bstat-main-label { font-size:13px; color:var(--text-muted); margin-top:4px; font-weight:500; }

/* ── PAGE HEADER ─────────────────────────────────────────────── */
.page-header {
  display: none;
}

.content-area { padding:36px 60px; }

/* ── TABLE ────────────────────────────────────────────────────── */
.table-wrapper {
  background:#0f1f3d; border:1px solid #1e3a8a;
  border-top:3px solid #f59e0b; border-radius:12px; overflow:hidden;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}

/* ── Admin Pagination ───────────────────────────────────────── */
.admin-pag-wrap {
  display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:10px;
  padding:12px 20px;
  border-top:1px solid rgba(255,255,255,.08);
  background:#0a1628;
}
.admin-pag-info { font-size:13px; color:rgba(255,255,255,.45); }
.admin-pag-btns { display:flex; gap:4px; flex-wrap:wrap; }
.admin-pag-btn {
  min-width:34px; height:34px; padding:0 10px;
  background:#0f1f3d; border:1px solid rgba(255,255,255,.15);
  border-radius:7px; color:rgba(255,255,255,.65);
  font-size:13px; font-weight:600; cursor:pointer;
  font-family:'DM Sans',sans-serif; transition:all .18s;
}
.admin-pag-btn:hover:not(:disabled):not(.active) { border-color:#f59e0b; color:#f59e0b; }
.admin-pag-btn.active { background:#2563eb; border-color:#2563eb; color:#fff; }
.admin-pag-btn:disabled { opacity:.3; cursor:default; }
.table-header {
  padding:16px 20px; border-bottom:1px solid rgba(255,255,255,.08);
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px;
}
.table-header h3 { font-size:15px; font-weight:600; color:#f59e0b; }
.search-box {
  display:flex; align-items:center; gap:8px;
  background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.15);
  border-radius:7px; padding:6px 12px;
}
.search-box input {
  background:none; border:none; outline:none;
  color:#fff; font-size:13px; font-family:'DM Sans',sans-serif; width:180px;
}
.search-box input::placeholder { color:rgba(255,255,255,.35); }

table { width:100%; border-collapse:collapse; background:#0f1f3d; }
tbody { background:#0f1f3d; }
thead { background:#0a1628; }
th {
  padding:11px 16px; text-align:left;
  font-size:11px; font-weight:600; text-transform:uppercase;
  letter-spacing:.5px; color:#f59e0b; border-bottom:2px solid #f59e0b;
}
td {
  padding:12px 16px; font-size:14px;
  border-bottom:1px solid rgba(255,255,255,.06);
  color:rgba(255,255,255,.85); background:#0f1f3d;
}
tr:nth-child(even) td { background:#0d1b35; }
tr:last-child td { border-bottom:none; }
tr:hover td { background:rgba(245,158,11,.07)!important; color:rgba(255,255,255,.85)!important; }
tr:focus-within td { background:#0f1f3d; color:rgba(255,255,255,.85); }

/* ── Global button reset — cegah warna putih browser bawaan ── */
button {
  -webkit-appearance: none;
  appearance: none;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
/* Tombol aksi di dalam tabel */
td button {
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
td button:active {
  opacity: .75;
  transform: scale(.96);
}
td button:focus { outline: none; }

/* Cegah flash putih saat klik row di mobile */
tr {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}
/* Paksa warna teks & background td agar tidak berubah putih di semua state */
tr td,
tr:hover td,
tr:active td,
tr:focus td,
tr:visited td {
  color: rgba(255,255,255,.85) !important;
}
tr:nth-child(even) td,
tr:nth-child(even):focus td,
tr:nth-child(even):active td {
  background: #0d1b35 !important;
}
tr:nth-child(odd) td,
tr:nth-child(odd):focus td,
tr:nth-child(odd):active td {
  background: #0f1f3d !important;
}
tr:hover td {
  background: rgba(245,158,11,.07) !important;
}

.badge {
  display:inline-block; padding:3px 10px; border-radius:20px;
  font-size:12px; font-weight:600;
}
.badge-green  { background:#16a34a; color:#fff; }
.badge-blue   { background:#2563eb; color:#fff; }
.badge-orange { background:#d97706; color:#fff; }
.badge-red    { background:#dc2626; color:#fff; }

.avatar {
  width:34px; height:34px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:13px; font-weight:700; flex-shrink:0;
}
.td-user { display:flex; align-items:center; gap:10px; }
.td-name { font-weight:600; color:#fff; }
.td-sub  { font-size:12px; color:rgba(255,255,255,.5); }
.td-actions { display:flex; gap:6px; }

.btn-add {
  padding:8px 14px;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  border:none; border-radius:8px; color:#fff;
  font-size:13px; font-weight:600; cursor:pointer;
  font-family:'DM Sans',sans-serif;
  display:flex; align-items:center; gap:6px; transition:opacity .2s;
}
.btn-add:hover { opacity:.9; }
.btn-edit {
  padding:5px 10px; background:rgba(240,165,0,.12);
  border:1px solid rgba(240,165,0,.3); border-radius:6px;
  color:var(--accent); font-size:12px; font-weight:600;
  cursor:pointer; font-family:'DM Sans',sans-serif; transition:all .2s;
}
.btn-edit:hover { background:rgba(240,165,0,.22); }
.btn-del {
  padding:5px 10px; background:rgba(220,38,38,.1);
  border:1px solid rgba(220,38,38,.25); border-radius:6px;
  color:#ff6b6b; font-size:12px; font-weight:600;
  cursor:pointer; font-family:'DM Sans',sans-serif; transition:all .2s;
}
.btn-del:hover { background:rgba(220,38,38,.2); }

/* ── MODAL ────────────────────────────────────────────────────── */
.modal-overlay {
  display:none; position:fixed; inset:0;
  background:rgba(0,0,0,.6); z-index:500;
  align-items:center; justify-content:center; backdrop-filter:blur(3px);
}
.modal-overlay.open { display:flex; }
.modal {
  background:#0f1f3d; border:1px solid #1e3a8a;
  border-top:4px solid #f59e0b; border-radius:16px;
  padding:32px; width:100%; max-width:540px; max-height:90vh;
  overflow-y:auto; position:relative;
  box-shadow:0 16px 48px rgba(0,0,0,.5);
  animation:modalIn .3s ease;
}
@keyframes modalIn { from{opacity:0;transform:scale(.95)} to{opacity:1;transform:scale(1)} }
.modal h3 {
  font-family:'Playfair Display',serif; font-size:20px;
  color:#fff; margin-bottom:22px;
}
.modal-close {
  position:absolute; top:16px; right:16px;
  width:30px; height:30px; border-radius:8px;
  background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.2);
  color:rgba(255,255,255,.7); font-size:18px; cursor:pointer;
  display:flex; align-items:center; justify-content:center; line-height:1;
  transition:all .2s;
}
.modal-close:hover { color:#fff; background:rgba(248,81,73,.2); border-color:rgba(248,81,73,.4); }

/* ── FORM ─────────────────────────────────────────────────────── */
.form-group { margin-bottom:16px; }
.form-group label {
  display:block; font-size:12px; font-weight:600;
  color:rgba(255,255,255,.6); text-transform:uppercase;
  letter-spacing:.5px; margin-bottom:6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width:100%; padding:10px 13px;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.15);
  border-radius:8px; color:#fff;
  font-size:14px; font-family:'DM Sans',sans-serif;
  outline:none; transition:border-color .2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color:rgba(255,255,255,.3); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color:#f59e0b; }
.form-group select option { background:#0f1f3d; }
.form-group textarea { resize:vertical; min-height:80px; }
.grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:14px; }

.btn-submit {
  width:100%; padding:12px;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  border:none; border-radius:8px; color:#fff;
  font-size:15px; font-weight:700; cursor:pointer;
  font-family:'DM Sans',sans-serif; margin-top:8px;
  transition:opacity .2s,transform .1s;
}
.btn-submit:hover { opacity:.9; transform:translateY(-1px); }

/* ── LOGIN ────────────────────────────────────────────────────── */
.login-wrap {
  min-height:calc(100vh - var(--topbar-h));
  display:flex; align-items:center; justify-content:center;
  background:radial-gradient(ellipse 60% 60% at 50% 40%,#eef2ff,#fff);
  padding:40px 20px;
}
.login-card {
  background:#0f1f3d; border:1px solid #1e3a8a;
  border-top:4px solid #f59e0b; border-radius:16px;
  padding:44px 40px; width:100%; max-width:420px;
  box-shadow:0 8px 32px rgba(0,0,0,.35);
}
.login-logo {
  width:52px; height:52px;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  border-radius:12px; display:flex;
  align-items:center; justify-content:center;
  font-size:24px; margin:0 auto 20px;
}
.login-card h2 {
  font-family:'Playfair Display',serif; font-size:24px;
  text-align:center; margin-bottom:6px; color:#fff;
}
.login-sub { text-align:center; color:rgba(255,255,255,.6); font-size:14px; margin-bottom:28px; }
.login-error {
  background:rgba(220,38,38,.15); border:1px solid rgba(220,38,38,.3);
  color:#fca5a5; padding:10px 14px; border-radius:8px;
  font-size:13px; margin-bottom:16px; display:none;
}
.login-footer { text-align:center; margin-top:18px; font-size:13px; color:rgba(255,255,255,.45); }

/* ── INFORMASI CARDS ─────────────────────────────────────────── */
.info-doc-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
.info-doc-card {
  display:flex; align-items:flex-start; gap:14px;
  background:#0f1f3d; border:1px solid rgba(255,255,255,.08);
  border-right:3px solid #f59e0b; border-radius:10px;
  padding:14px 16px; transition:all .2s;
}
.info-doc-card:hover { transform:translateY(-1px); box-shadow:0 4px 16px rgba(245,158,11,.2); }
.info-doc-icon {
  width:40px; height:40px; border-radius:8px;
  background:rgba(245,158,11,.15);
  display:flex; align-items:center; justify-content:center;
  font-size:20px; flex-shrink:0;
}
.info-doc-title { font-size:14px; font-weight:600; color:#fff; margin-bottom:4px; }
.info-doc-desc  { font-size:12px; color:rgba(255,255,255,.6); line-height:1.5; }
.info-doc-action { font-size:12px; color:#f59e0b; font-weight:600; margin-top:6px; cursor:pointer; }

/* ── STRUKTUR ────────────────────────────────────────────────── */
.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  background: #0d1b35;
  border-radius: 16px;
  border: 1px solid rgba(245,158,11,.35);
  border-top: 3px solid #f59e0b;
  padding: 32px 20px;
  box-shadow: 0 4px 32px rgba(0,0,0,.35);
}
.org-level { display:flex; flex-wrap:wrap; justify-content:center; gap:14px; padding:0 10px; }
.org-connector { width:2px; height:28px; background:#94a3b8; opacity:.6; }
.org-card {
  background:#0f1f3d !important; border:2px solid var(--accent);
  border-radius:14px; padding:16px 22px;
  min-width:180px; max-width:260px; flex:1;
  text-align:center; transition:transform .2s;
  box-shadow:0 4px 16px rgba(0,0,0,.25);
}
.org-card:hover { transform:translateY(-3px); box-shadow:0 8px 24px rgba(0,0,0,.35); }
.org-jabatan { font-size:11px; font-weight:700; letter-spacing:1px; text-transform:uppercase; color:var(--accent); margin-bottom:6px; }
.org-nama    { font-weight:700; font-size:14px; color:#ffffff !important; }
.org-gelar   { font-size:11px; color:rgba(255,255,255,.55) !important; margin-top:3px; }

/* ── PENUNJANG CARDS ─────────────────────────────────────────── */
.penunjang-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:14px; }
.penunjang-card {
  background:#0f1f3d; border:1px solid rgba(255,255,255,.08);
  border-top:3px solid #f59e0b; border-radius:12px;
  padding:20px 18px; text-align:center; transition:all .2s;
}
.penunjang-card:hover { transform:translateY(-2px); box-shadow:0 6px 20px rgba(0,0,0,.2); }
.penunjang-avatar {
  width:54px; height:54px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:22px; font-weight:700; color:#fff; margin:0 auto 12px;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
}
.penunjang-nama    { font-size:15px; font-weight:600; color:#fff; margin-bottom:4px; }
.penunjang-jabatan { font-size:12px; color:rgba(255,255,255,.5); }
.penunjang-unit    { font-size:11px; color:rgba(255,255,255,.35); margin-top:2px; }

/* ── TOAST ────────────────────────────────────────────────────── */
.toast-wrap { position:fixed; bottom:24px; right:24px; z-index:9999; display:flex; flex-direction:column; gap:8px; }
.toast {
  padding:12px 18px; border-radius:10px;
  font-size:14px; font-weight:500; color:#fff;
  box-shadow:0 4px 16px rgba(0,0,0,.25);
  animation:toastIn .3s ease; max-width:320px;
}
.toast.success { background:#16a34a; }
.toast.error   { background:#dc2626; }
.toast.info    { background:#2563eb; }
@keyframes toastIn { from{opacity:0;transform:translateX(20px)} to{opacity:1;transform:translateX(0)} }

/* ── FOOTER ───────────────────────────────────────────────────── */
.footer {
  padding:20px 60px; text-align:center;
  font-size:13px; color:var(--text-muted);
  border-top:1px solid var(--border); margin-top:40px;
}

/* ── HAMBURGER BUTTON ────────────────────────────────────────── */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-right: 12px;
  flex-shrink: 0;
}
.hamburger-btn span {
  display: block;
  height: 2px;
  width: 22px;
  background: rgba(255,255,255,.80);
  border-radius: 2px;
  transition: all .3s;
}
.hamburger-btn:hover span { background: #f59e0b; }

/* Sidebar overlay (mobile) */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 240;
}
.sidebar-overlay.active { display: block; }

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width:768px) {
  :root { --sidebar-w:0px; }

  /* Hamburger tampil di mobile */
  .hamburger-btn { display: flex; }

  /* Sidebar tersembunyi, slide dari kiri saat .open */
  .sidebar {
    display: flex !important;
    transform: translateX(-100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    width: 240px;
    z-index: 250;
  }
  .sidebar.open { transform: translateX(0); }

  .pub-topbar-left { margin-left:0; }
  .main { margin-left:0; }
  .beranda-banner { padding:36px 24px 28px; }
  .beranda-stats-row { grid-template-columns:repeat(2,1fr); }
  .page-header, .content-area { padding:24px 20px; }
  .beranda-section { padding:24px 20px 0; }
  .grid-2 { grid-template-columns:1fr; }
  .info-doc-grid { grid-template-columns:1fr; }
  .login-card { padding:32px 24px; }
  .footer { padding:20px; }
}
@media (max-width:480px) {
  .beranda-stats-row { grid-template-columns:1fr 1fr; }
  .modal { margin:12px; }
}

/* ══════════════════════════════════════════
   TABEL DOSEN — DESAIN BARU
══════════════════════════════════════════ */

/* Info bar */
.dosen-infobar {
  display:flex; align-items:flex-start; gap:14px;
  background:rgba(37,99,235,.12);
  border:1px solid rgba(37,99,235,.3);
  border-radius:10px; padding:14px 18px;
  margin-bottom:20px;
}
.dosen-infobar-icon {
  width:28px; height:28px; border-radius:6px;
  background:#2563eb; color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-size:14px; font-weight:900; flex-shrink:0; margin-top:1px;
}
.dosen-infobar-title {
  font-size:14px; font-weight:700; color:#f59e0b; margin-bottom:3px;
}
.dosen-infobar-desc { font-size:13px; color:rgba(255,255,255,.75); }
.dosen-infobar-date { color:#f59e0b; font-weight:600; }

/* Kontrol atas */
.dosen-controls {
  display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:12px; margin-bottom:14px;
}
.dosen-perpage {
  display:flex; align-items:center; gap:10px;
  font-size:14px; color:rgba(255,255,255,.7);
}
.dosen-perpage select {
  padding:6px 32px 6px 12px;
  background:#1e3a8a;
  border:1px solid rgba(255,255,255,.2);
  border-radius:8px; color:#fff;
  font-size:14px; font-family:'DM Sans',sans-serif;
  cursor:pointer; outline:none;
  appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23f59e0b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 10px center;
}
.dosen-search-wrap {
  display:flex; align-items:center; gap:10px;
  font-size:14px; color:rgba(255,255,255,.7);
}
.dosen-search-wrap input {
  padding:7px 14px;
  background:#fff; border:1.5px solid #d1d5db;
  border-radius:8px; color:#1a202c;
  font-size:14px; font-family:'DM Sans',sans-serif;
  outline:none; width:200px;
  transition:border-color .2s, box-shadow .2s;
}
.dosen-search-wrap input:focus {
  border-color:#2563eb;
  box-shadow:0 0 0 3px rgba(37,99,235,.15);
}

/* Tabel dosen */
.dosen-table { width:100%; border-collapse:collapse; }
.dosen-table thead { background:#0a1628; }
.dosen-table th {
  padding:14px 16px; text-align:left;
  font-size:11px; font-weight:800;
  text-transform:uppercase; letter-spacing:.8px;
  color:#f59e0b;
  border-bottom:2px solid #f59e0b;
  white-space:nowrap;
}
.dosen-table th.col-no     { width:52px; text-align:center; }
.dosen-table th.col-usia   { width:80px; text-align:center; white-space:nowrap; }
.dosen-table th.col-status { width:145px; text-align:center; }
.dosen-table th.col-aksi   { width:90px; text-align:center; }

.dosen-table td {
  padding:14px 16px; font-size:14px;
  border-bottom:1px solid rgba(255,255,255,.07);
  color:#e2e8f0;
  background:#0f1f3d;
  vertical-align:middle;
}
.dosen-table tr:nth-child(even) td { background:#0d1b35; }
.dosen-table tr:last-child td { border-bottom:none; }
.dosen-table tr:hover td { background:rgba(245,158,11,.07)!important; }

.dosen-table td.col-no { text-align:center; font-weight:600; color:rgba(255,255,255,.5); }
.dosen-table td.col-usia   { text-align:center; white-space:nowrap; }
.dosen-table td.col-status { text-align:center; }
.dosen-table td.col-aksi   { text-align:center; }

.td-loading {
  text-align:center; padding:32px!important;
  color:rgba(255,255,255,.65); font-size:14px;
}

/* Nama dosen */
.dosen-nama-wrap { display:flex; flex-direction:column; gap:1px; }
.dosen-nama-text {
  font-weight: 700; color: #ffffff; font-size: 14px; line-height: 1.3;
}
.dosen-email {
  font-size: 12px; color: #7dd3fc; margin-top: 1px;
  font-style: normal;
}

/* Badge status khusus */
.badge-aktif        { background:#16a34a; color:#fff; padding:4px 14px; border-radius:20px; font-size:12px; font-weight:700; white-space:nowrap; display:inline-block; }
.badge-nonaktif     { background:#dc2626; color:#fff; padding:4px 14px; border-radius:20px; font-size:12px; font-weight:700; white-space:nowrap; display:inline-block; }
.badge-tugasbelajar { background:#2563eb; color:#fff; padding:4px 10px; border-radius:20px; font-size:12px; font-weight:700; white-space:nowrap; display:inline-block; }
.badge-izinbelajar  { background:#0891b2; color:#fff; padding:4px 10px; border-radius:20px; font-size:12px; font-weight:700; white-space:nowrap; display:inline-block; }
.badge-orange       { white-space:nowrap; display:inline-block; }
.badge-cuti       { background:#d97706; color:#fff; padding:4px 14px; border-radius:20px; font-size:12px; font-weight:700; }

/* Tombol Detail */
.btn-detail-dosen {
  padding: 6px 16px;
  background: #0a1628;
  border: 1.5px solid #f59e0b;
  border-radius: 50px;
  color: #fff;
  font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all .2s;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(245,158,11,.15);
}
.btn-detail-dosen:hover {
  background: #f59e0b;
  color: #0a1628;
  box-shadow: 0 4px 14px rgba(245,158,11,.35);
  transform: translateY(-1px);
}

/* Pagination */
.dosen-pagination-wrap {
  display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:12px; margin-top:18px;
}
.dosen-info-count { font-size:13px; color:rgba(255,255,255,.5); }
.dosen-pagination { display:flex; gap:4px; flex-wrap:wrap; }
.dosen-pagination button {
  min-width:36px; height:36px; padding:0 10px;
  background:#0f1f3d; border:1px solid rgba(255,255,255,.15);
  border-radius:8px; color:rgba(255,255,255,.7);
  font-size:13px; font-weight:600; cursor:pointer;
  font-family:'DM Sans',sans-serif;
  transition:all .2s;
}
.dosen-pagination button:hover { border-color:#f59e0b; color:#f59e0b; }
.dosen-pagination button.active {
  background:#2563eb; border-color:#2563eb; color:#fff;
}
.dosen-pagination button:disabled { opacity:.35; cursor:default; }

/* Modal detail dosen */
.detail-dosen-header {
  display:flex; align-items:center; gap:16px; margin-bottom:22px;
}
.detail-dosen-avatar {
  width:64px; height:64px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:24px; font-weight:800; color:#fff; flex-shrink:0;
  background:linear-gradient(135deg,#1e3a8a,#2563eb);
  border:3px solid rgba(255,255,255,.2);
}
.detail-dosen-nama { font-family:'Playfair Display',serif; font-size:19px; font-weight:700; color:#fff; margin-bottom:4px; }
.detail-dosen-sub  { font-size:13px; color:rgba(255,255,255,.5); }
.detail-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:18px; }
.detail-item {
  background:#0a1628; border:1px solid rgba(255,255,255,.08);
  border-radius:10px; padding:12px 14px;
}
.detail-item.full { grid-column:1/-1; }
.detail-label { font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.8px; color:rgba(255,255,255,.35); margin-bottom:5px; }
.detail-value { font-size:14px; font-weight:500; color:#fff; }

/* ══════════════════════════════════════════
   MODAL DETAIL DOSEN — DESAIN BARU
══════════════════════════════════════════ */

/* Override modal width untuk detail */
/* Modal detail dosen — scrollable */
#modal-detail-dosen .modal {
  max-width: 560px;
  padding: 0;
  overflow: hidden;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}
#modal-detail-dosen-body {
  overflow-y: scroll;
  flex: 1;
  /* Scrollbar selalu terlihat seperti screenshot */
  scrollbar-width: auto;
  scrollbar-color: #6b7280 #1e293b;
}
/* Webkit scrollbar — lebar & selalu tampil */
#modal-detail-dosen-body::-webkit-scrollbar {
  width: 14px;
  background: #1e293b;
}
#modal-detail-dosen-body::-webkit-scrollbar-track {
  background: #1e293b;
  border-radius: 0;
}
#modal-detail-dosen-body::-webkit-scrollbar-thumb {
  background: #6b7280;
  border-radius: 7px;
  border: 2px solid #1e293b;
  min-height: 40px;
}
#modal-detail-dosen-body::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}
#modal-detail-dosen-body::-webkit-scrollbar-button {
  display: block;
  height: 14px;
  background: #374151;
}
#modal-detail-dosen-body::-webkit-scrollbar-button:start:decrement {
  background: #374151
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath d='M4 2l4 4H0z' fill='%23fff'/%3E%3C/svg%3E")
    center no-repeat;
}
#modal-detail-dosen-body::-webkit-scrollbar-button:end:increment {
  background: #374151
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath d='M4 6L0 2h8z' fill='%23fff'/%3E%3C/svg%3E")
    center no-repeat;
}

/* Header */
.det-header {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 24px 24px 18px;
  background: linear-gradient(135deg, #0f1f3d, #1a2f55);
  border-bottom: 1px solid rgba(245,158,11,.3);
}
.det-avatar {
  width: 60px; height: 60px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #92400e, #d97706);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; color: #fff;
  border: 3px solid rgba(255,255,255,.15);
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.det-nama {
  font-family: 'Playfair Display', serif;
  font-size: 18px; font-weight: 700; color: #fff;
  line-height: 1.3; margin-bottom: 5px;
}
.det-contact {
  font-size: 12px; color: rgba(255,255,255,.55);
  margin-bottom: 10px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
}
.det-badges { display: flex; flex-wrap: wrap; gap: 6px; }

/* Badge serbaguna */
.det-badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: .3px;
}
.badge-det-green  { background: #16a34a; color: #fff; }
.badge-det-red    { background: #dc2626; color: #fff; }
.badge-det-blue   { background: #2563eb; color: #fff; }
.badge-det-cyan   { background: #0891b2; color: #fff; }
.badge-det-orange { background: #d97706; color: #fff; }
.badge-det-teal   { background: #0891b2; color: #fff; }
.badge-det-purple { background: #7c3aed; color: #fff; }
.badge-det-gray   { background: #475569; color: #fff; }

/* Section title */
.det-section-title {
  font-size: 11px; font-weight: 800; letter-spacing: 1.5px;
  color: #2563eb; padding: 14px 24px 0;
  display: flex; align-items: center; gap: 10px;
}
.det-section-title::after {
  content: ''; flex: 1; height: 1.5px;
  background: linear-gradient(90deg, #2563eb, transparent);
}

/* Grid data */
.det-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; padding: 10px 24px 16px;
}
.det-item {
  background: #0a1628;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px; padding: 11px 14px;
  transition: border-color .2s;
}
.det-item:hover { border-color: rgba(245,158,11,.25); }
.det-item.full { grid-column: 1 / -1; }
.det-label {
  font-size: 9px; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; color: rgba(255,255,255,.3);
  margin-bottom: 5px;
}
.det-value {
  font-size: 14px; font-weight: 500; color: #fff; line-height: 1.4;
}

/* Form section label */
.form-section-label {
  font-size: 11px; font-weight: 800; letter-spacing: 1.2px;
  text-transform: uppercase; color: #f59e0b;
  margin: 16px 0 10px; padding-bottom: 6px;
  border-bottom: 1px solid rgba(245,158,11,.25);
  display: flex; align-items: center; gap: 8px;
}

/* ── Masa kerja highlight ───────────────────────────────────── */
.det-value-highlight { color: #f59e0b; font-weight: 700; }

/* ── Modal detail scroll ────────────────────────────────────── */
/* Modal detail tendik & penunjang — scrollable */
#modal-detail-tendik .modal,
#modal-detail-penunjang .modal {
  max-width: 520px;
  padding: 0;
  overflow: hidden;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}
#modal-detail-tendik-body,
#modal-detail-penunjang-body {
  overflow-y: scroll;
  flex: 1;
  scrollbar-width: auto;
  scrollbar-color: #6b7280 #1e293b;
}
#modal-detail-tendik-body::-webkit-scrollbar,
#modal-detail-penunjang-body::-webkit-scrollbar {
  width: 14px;
  background: #1e293b;
}
#modal-detail-tendik-body::-webkit-scrollbar-track,
#modal-detail-penunjang-body::-webkit-scrollbar-track {
  background: #1e293b;
}
#modal-detail-tendik-body::-webkit-scrollbar-thumb,
#modal-detail-penunjang-body::-webkit-scrollbar-thumb {
  background: #6b7280;
  border-radius: 7px;
  border: 2px solid #1e293b;
  min-height: 40px;
}
#modal-detail-tendik-body::-webkit-scrollbar-thumb:hover,
#modal-detail-penunjang-body::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}
#modal-detail-tendik-body::-webkit-scrollbar-button,
#modal-detail-penunjang-body::-webkit-scrollbar-button {
  display: block;
  height: 14px;
  background: #374151;
}
#modal-detail-tendik .modal-close,
#modal-detail-penunjang .modal-close {
  position: absolute; top: 14px; right: 28px; z-index: 10;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
}

/* Tombol close — geser kiri agar tidak tertutup scrollbar */
#modal-detail-dosen .modal-close {
  position: absolute;
  top: 14px;
  right: 28px; /* geser dari scrollbar 14px */
  z-index: 20;
  background: rgba(30,30,60,.8);
  border: 1px solid rgba(255,255,255,.25);
}
/* Header dosen relative untuk close button */
#modal-detail-dosen .modal { position: relative; }

/* ══════════════════════════════════════════
   LIST PAGE LAYOUT — Card dengan Header
══════════════════════════════════════════ */

.list-page-wrap {
  padding: 28px 32px;
  min-height: calc(100vh - var(--topbar-h));
  background: #eef2ff;
}

/* Card utama */
.list-card {
  background: #0f1f3d;
  border: 2px solid #f59e0b;
  border-radius: 12px;
  overflow: hidden;
}

/* Header card — "≡ List Data Dosen" */
.list-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  background: #0a1628;
  border-bottom: 2px solid #f59e0b;
}
.list-card-icon {
  font-size: 18px;
  color: #f59e0b;
  font-weight: 700;
}
.list-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #f59e0b;
  font-family: 'DM Sans', sans-serif;
}

/* Info bar di dalam card */
.list-infobar {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(37,99,235,.1);
  border: 1px solid rgba(37,99,235,.25);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 18px 18px 0;
}
.list-infobar-icon {
  width: 26px; height: 26px;
  border-radius: 6px;
  background: #2563eb;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900;
  flex-shrink: 0; margin-top: 1px;
}
.list-infobar-title {
  font-size: 14px; font-weight: 700;
  color: #f59e0b; margin-bottom: 3px;
}
.list-infobar-desc  { font-size: 13px; color: rgba(255,255,255,.75); }
.list-infobar-date  { color: #f59e0b; font-weight: 600; }

/* Kontrol per-page + search */
.list-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 18px 10px;
}
.list-perpage {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: rgba(255,255,255,.7);
}
.list-perpage select {
  padding: 5px 28px 5px 10px;
  background: #1e3a8a;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 7px;
  color: #fff;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer; outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23f59e0b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
}
.list-search-wrap {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: rgba(255,255,255,.7);
}
.list-search-wrap input {
  padding: 7px 14px;
  background: #fff;
  border: 1.5px solid #d1d5db;
  border-radius: 7px;
  color: #1a202c;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  outline: none; width: 200px;
  transition: border-color .2s, box-shadow .2s;
}
.list-search-wrap input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

/* Pagination di dalam card */
.list-pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 18px 18px;
  border-top: 1px solid rgba(255,255,255,.06);
}

/* Override table di dalam card — hapus border wrapper */
.list-card .dosen-table td,
.list-card .dosen-table th { }
.list-card .dosen-table thead { background: #060e1f; }

@media (max-width: 768px) {
  .list-page-wrap { padding: 16px; }
  .list-controls { flex-direction: column; align-items: flex-start; }
  .list-search-wrap input { width: 100%; }
}

/* ══════════════════════════════════════════
   BERANDA BARU
══════════════════════════════════════════ */

.home-wrap {
  background: #f0f4f8;
  min-height: calc(100vh - var(--topbar-h));
  padding: 20px 20px 32px;
}

/* ── Banner Informasi ────────────────────── */
.home-banner {
  background: #0a1628;
  border: none;
  border-left: 4px solid #f59e0b;
  border-radius: 0 14px 14px 0;
  padding: 22px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.home-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.home-banner-badge-icon {
  width: 22px; height: 22px;
  background: #2563eb;
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900; color: #fff;
}
.home-banner-badge span:last-child {
  font-size: 13px; font-weight: 800;
  color: #f59e0b; letter-spacing: 1px;
}
.home-banner-greeting {
  font-family: 'Playfair Display', serif;
  font-size: 28px; font-weight: 700;
  color: #f59e0b; margin-bottom: 8px;
}
.home-banner-sub {
  font-size: 14px; color: rgba(255,255,255,.7); line-height: 1.5;
}
.home-motivasi-wrap {
  display: flex; align-items: flex-start; gap: 6px;
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(245,158,11,.08);
  border-left: 3px solid #f59e0b;
  border-radius: 0 6px 6px 0;
  max-width: 560px;
}
.home-motivasi-icon {
  font-size: 14px; flex-shrink: 0; margin-top: 1px;
}
.home-motivasi-text {
  font-size: 13px; color: rgba(255,255,255,.85);
  font-style: italic; line-height: 1.55;
  min-height: 20px;
}
.home-motivasi-text::after {
  content: '|';
  animation: blink-cursor .7s step-end infinite;
  color: #f59e0b;
  font-style: normal;
  margin-left: 1px;
}
.home-motivasi-text.done::after { display: none; }
@keyframes blink-cursor {
  0%, 100% { opacity: 1; } 50% { opacity: 0; }
}
.home-banner-icon {
  font-size: 52px; flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.3));
  animation: float-building 3s ease-in-out infinite;
  display: inline-block;
  transform-origin: center bottom;
}
.home-banner-icon img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  padding: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
  /* Tidak ada filter agar warna asli logo tetap terjaga */
}
#home-banner-logo-emoji {
  font-size: 64px;
  display: block;
  line-height: 1;
}
@keyframes float-building {
  0%   { transform: translateY(0px) scale(1); }
  30%  { transform: translateY(-8px) scale(1.04); }
  60%  { transform: translateY(-4px) scale(1.02); }
  100% { transform: translateY(0px) scale(1); }
}

/* ── Rekapitulasi ───────────────────────── */
.home-rekap-wrap {
  padding: 20px 20px 0;
}
.home-rekap-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px 18px;
  background: #0f1f3d;
  border: 1px solid #f59e0b;
  border-radius: 10px;
}
.home-rekap-icon { font-size: 18px; }
.home-rekap-title {
  font-size: 13px; font-weight: 800;
  letter-spacing: 1.5px; color: #f59e0b;
  text-transform: uppercase; white-space: nowrap;
}
.home-rekap-line {
  flex: 1; height: 1.5px;
  background: linear-gradient(90deg, rgba(245,158,11,.4), transparent);
}

/* Stat cards grid */
.home-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.home-stat-card {
  background: #0f1f3d;
  border: 1px solid rgba(245,158,11,.25);
  border-top: 3px solid #f59e0b;
  border-radius: 12px;
  padding: 20px 22px;
  transition: transform .2s, box-shadow .2s;
}
.home-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(245,158,11,.15);
  border-color: #f59e0b;
}
.home-stat-label {
  font-size: 13px; color: rgba(255,255,255,.6);
  margin-bottom: 10px; font-weight: 500;
}
.home-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 48px; font-weight: 700;
  color: #f59e0b; line-height: 1;
  margin-bottom: 8px;
}
.home-stat-sub {
  font-size: 12px; color: rgba(255,255,255,.4);
}

/* ── Charts ─────────────────────────────── */
.home-charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px 20px 0;
}
.home-chart-card {
  background: #0f1f3d;
  border: 1px solid rgba(255,255,255,.08);
  border-top: 3px solid #f59e0b;
  border-radius: 12px;
  padding: 22px 24px 18px;
}
.home-chart-meta {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: rgba(255,255,255,.35); margin-bottom: 4px;
}
.home-chart-title {
  font-size: 16px; font-weight: 700;
  color: #f59e0b; margin-bottom: 18px;
}
.home-chart-body {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.home-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
}
.legend-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: rgba(255,255,255,.7);
}
.legend-dot {
  width: 10px; height: 10px;
  border-radius: 50%; flex-shrink: 0;
}

/* ── Footer info ────────────────────────── */
.home-footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px 0 0;
}
.home-footer-card {
  background: #0f1f3d;
  border: 1px solid rgba(255,255,255,.08);
  border-right: 3px solid #f59e0b;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex; align-items: flex-start; gap: 14px;
}
.home-footer-icon {
  font-size: 22px; flex-shrink: 0; margin-top: 2px;
}
.home-footer-label {
  font-size: 13px; font-weight: 700;
  color: #fff; margin-bottom: 4px;
}
.home-footer-value {
  font-size: 13px; color: rgba(255,255,255,.6); line-height: 1.5;
}

/* Responsive */
@media (max-width: 900px) {
  .home-stat-grid    { grid-template-columns: repeat(2, 1fr); }
  .home-charts-grid  { grid-template-columns: 1fr; }
  .home-footer-grid  { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .home-stat-grid    { grid-template-columns: 1fr 1fr; }
  .home-rekap-wrap, .home-charts-grid,
  .home-footer-grid  { padding-left: 16px; padding-right: 16px; }
  .home-banner       { padding: 18px 16px; }
}

/* ══════════════════════════════════════════
   HALAMAN INFORMASI — DESAIN BARU
══════════════════════════════════════════ */

.info-page-wrap {
  background: #f0f4f8;
  min-height: calc(100vh - var(--topbar-h));
  padding-bottom: 32px;
}

/* Banner */
.info-page-wrap {
  background: #f0f4f8;
  min-height: calc(100vh - var(--topbar-h));
  padding: 20px 20px 32px;
}

.info-banner {
  background: #0a1628;
  border: none;
  border-left: 4px solid #f59e0b;
  border-radius: 0 14px 14px 0;
  padding: 22px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.info-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.info-banner-badge-icon {
  width: 22px; height: 22px;
  background: #2563eb;
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900; color: #fff;
}
.info-banner-badge span:last-child {
  font-size: 13px; font-weight: 800;
  color: #f59e0b; letter-spacing: 1px;
}
.info-banner-title {
  font-family: 'Playfair Display', serif;
  font-size: 26px; font-weight: 700;
  color: #f59e0b; margin-bottom: 6px;
}
.info-banner-sub  { font-size: 13px; color: rgba(255,255,255,.65); }
.info-banner-icon {
  font-size: 48px; flex-shrink: 0;
  animation: float-building 3s ease-in-out infinite;
  display: inline-block;
}

/* Struktur banner — same style as home-banner */
.struktur-wrap {
  background: #f0f4f8;
  min-height: calc(100vh - var(--topbar-h));
  padding: 20px 20px 32px;
  padding-bottom: 40px;
}
.struktur-banner {
  background: #0a1628;
  border: none;
  border-left: 4px solid #f59e0b;
  border-radius: 0 14px 14px 0;
  padding: 22px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.struktur-banner-left { flex: 1; }
.struktur-banner-badge {
  display: inline-flex; align-items: center;
  gap: 8px; margin-bottom: 10px;
}
.struktur-banner-badge-icon {
  width: 22px; height: 22px;
  background: #2563eb; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900; color: #fff;
}
.struktur-banner-badge span:last-child {
  font-size: 13px; font-weight: 800;
  color: #f59e0b; letter-spacing: 1px;
}
.struktur-banner-title {
  font-family: 'Playfair Display', serif;
  font-size: 26px; font-weight: 700;
  color: #f59e0b; margin-bottom: 6px;
}
.struktur-banner-sub { font-size: 13px; color: rgba(255,255,255,.65); }
.struktur-banner-icon {
  font-size: 48px; flex-shrink: 0;
  animation: float-building 3s ease-in-out infinite;
  display: inline-block;
}

/* Grid wrap */
.info-search-wrap {
  padding: 16px 32px 0;
  background: #f0f4f8;
}
.info-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0f1e3d;
  border: 1.5px solid #f59e0b;
  border-radius: 10px;
  padding: 0 14px;
  max-width: 480px;
  transition: border-color .2s;
}
.info-search-box:focus-within {
  border-color: #f59e0b;
}
.info-search-icon { font-size: 15px; opacity: .6; flex-shrink: 0; }
.info-search-box input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  color: #fff;
  padding: 10px 0;
}
.info-search-box input::placeholder { color: rgba(255,255,255,.35); }
.info-search-clear {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  color: rgba(255,255,255,.4);
  padding: 4px;
  border-radius: 50%;
  line-height: 1;
  flex-shrink: 0;
}
.info-search-clear:hover { background: rgba(255,255,255,.1); color: #fff; }

.info-grid-wrap {
  padding: 24px 32px;
  background: #f0f4f8;
}

/* Grid 2 kolom */
.info-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 0;
}
.info-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 32px;
  color: #6b7280;
  font-size: 14px;
}

/* Setiap card informasi */
.info-item-card {
  background: #0f1f3d;
  border: 1px solid rgba(255,255,255,.07);
  border-left: 3px solid #f59e0b;
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: border-color .2s, box-shadow .2s, transform .15s;
  position: relative;
}
.info-item-card:hover {
  border-color: rgba(245,158,11,.4);
  box-shadow: 0 4px 16px rgba(245,158,11,.12);
  transform: translateY(-1px);
}
.info-item-icon {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 2px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
}
.info-item-body { flex: 1; min-width: 0; }
.info-item-title {
  font-size: 14px; font-weight: 700;
  color: #fff; margin-bottom: 5px;
  line-height: 1.3;
}
.info-item-desc {
  font-size: 12px; color: rgba(255,255,255,.55);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.info-item-arrow {
  font-size: 20px; color: rgba(255,255,255,.25);
  flex-shrink: 0; align-self: center;
  margin-left: 6px;
}
.info-item-card:hover .info-item-arrow { color: #f59e0b; }

/* Pagination bar */
.info-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 18px;
  background: #0f1f3d;
  border: 1px solid #f59e0b;
  border-radius: 10px;
}
.info-count-text {
  font-size: 13px; color: rgba(255,255,255,.55);
}
.info-count-text strong { color: #f59e0b; }
.info-pag-btns { display: flex; gap: 4px; }
.info-pag-btn {
  min-width: 34px; height: 34px; padding: 0 8px;
  background: #0a1628;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 7px;
  color: rgba(255,255,255,.65);
  font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  transition: all .2s;
}
.info-pag-btn:hover:not(:disabled) { border-color: #f59e0b; color: #f59e0b; }
.info-pag-btn.active {
  background: #2563eb; border-color: #2563eb; color: #fff;
}
.info-pag-btn:disabled { opacity: .35; cursor: default; }

@media (max-width: 768px) {
  .info-card-grid  { grid-template-columns: 1fr; }
  .info-grid-wrap  { padding: 16px; }
  .info-banner     { padding: 18px 16px; flex-direction: column; align-items: flex-start; }
  .info-banner-icon{ display: none; }
}

/* ══════════════════════════════════════════
   EXPORT & IMPORT
══════════════════════════════════════════ */

.btn-export {
  padding: 8px 14px;
  background: linear-gradient(135deg,#16a34a,#15803d);
  border: none; border-radius: 8px; color: #fff;
  font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  display: flex; align-items: center; gap: 6px;
  transition: opacity .2s, transform .1s;
  white-space: nowrap;
}
.btn-export:hover { opacity: .9; transform: translateY(-1px); }

.btn-import {
  padding: 8px 14px;
  background: linear-gradient(135deg,#2563eb,#1d4ed8);
  border: none; border-radius: 8px; color: #fff;
  font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  display: flex; align-items: center; gap: 6px;
  transition: opacity .2s, transform .1s;
  white-space: nowrap;
}
.btn-import:hover { opacity: .9; transform: translateY(-1px); }

/* Info box di modal import */
.import-info {
  display: flex; gap: 12px;
  background: rgba(37,99,235,.1);
  border: 1px solid rgba(37,99,235,.25);
  border-radius: 10px; padding: 14px 16px;
  margin-bottom: 4px;
}
.import-info-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }

/* File input custom */
.import-file-wrap { position: relative; }
.import-file-wrap input[type=file] {
  position: absolute; opacity: 0; width: 0; height: 0;
}
.import-file-label {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px;
  background: rgba(255,255,255,.07);
  border: 1.5px dashed rgba(255,255,255,.25);
  border-radius: 10px; cursor: pointer;
  color: rgba(255,255,255,.7); font-size: 14px;
  transition: border-color .2s, background .2s;
}
.import-file-label:hover {
  border-color: #f59e0b;
  background: rgba(245,158,11,.06);
  color: #fff;
}
.import-file-icon { font-size: 20px; flex-shrink: 0; }

/* Hasil import */
.import-result-ok {
  background: rgba(22,163,74,.15);
  border: 1px solid rgba(22,163,74,.4);
  border-radius: 10px; padding: 14px 16px;
  color: #86efac; font-size: 14px;
}
.import-result-err {
  background: rgba(220,38,38,.15);
  border: 1px solid rgba(220,38,38,.4);
  border-radius: 10px; padding: 14px 16px;
  color: #fca5a5; font-size: 14px;
}

/* ══════════════════════════════════════════
   LAYOUT — Sidebar full height, topbar di area konten
══════════════════════════════════════════ */

/* Sidebar tidak perlu padding-top karena topbar tidak overlap */
.sidebar {
  padding-top: 0;
}

/* Admin user info di dalam sidebar */
.admin-user-info {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; margin: 8px 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
}

/* Nav section label style baru */
.nav-section {
  padding: 14px 14px 4px;
  font-size: 10px; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,.28);
}

/* Responsif mobile */
@media (max-width: 768px) {
  .pub-topbar {
    left: 0;
  }
}

/* ── Site Footer Copyright ─────────────────────────────────── */
.site-footer {
  background: #07111f;
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 14px 24px;
  text-align: center;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
}
.site-footer-text {
  font-size: 12.5px;
  color: rgba(255,255,255,.38);
  letter-spacing: .3px;
}
.site-footer-link {
  color: #f59e0b;
  font-weight: 700;
  text-decoration: none;
  transition: color .2s;
}
.site-footer-link:hover {
  color: #fbbf24;
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════
   ADMIN DASHBOARD
═══════════════════════════════════════════════════════════ */

/* Welcome bar */
.db-welcome-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background: #0d1b35;
  border: 1px solid rgba(245,158,11,.3);
  border-left: 4px solid #f59e0b;
  border-radius: 14px;
  padding: 16px 22px;
  margin-bottom: 28px;
}
.db-welcome-text {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: #e2e8f0;
}
.db-wave { font-size: 1.5rem; }
.db-role-badge {
  display: inline-block;
  background: rgba(99,102,241,.4);
  color: #c7d2fe;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.db-time-label {
  font-size: 13px;
  color: rgba(255,255,255,.92);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Section title */
.db-section-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: #f59e0b;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}

/* ── Global Stat Cards ── */
.db-stats-global {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 12px;
  margin-bottom: 6px;
}
.db-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  background: #0f2038;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 16px 15px;
  cursor: pointer;
  overflow: hidden;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.db-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.2);
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.db-card-icon { font-size: 1.9rem; flex-shrink: 0; line-height: 1; }
.db-card-num  { font-size: 2rem; font-weight: 800; line-height: 1; }
.db-card-lbl  { font-size: 11.5px; color: rgba(255,255,255,.5); margin-top: 4px; }
.db-card-border {
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px; border-radius: 12px 12px 0 0;
}
/* Border colors */
.db-card--blue   .db-card-border { background: #3b82f6; }
.db-card--green  .db-card-border { background: #22c55e; }
.db-card--cyan   .db-card-border { background: #06b6d4; }
.db-card--teal   .db-card-border { background: #0891b2; }
.db-card--yellow .db-card-border { background: #f59e0b; }
.db-card--purple .db-card-border { background: #a855f7; }
/* Number colors — bright & readable on dark navy */
.db-card--blue   .db-card-num { color: #60a5fa; }
.db-card--green  .db-card-num { color: #4ade80; }
.db-card--cyan   .db-card-num { color: #22d3ee; }
.db-card--teal   .db-card-num { color: #67e8f9; }
.db-card--yellow .db-card-num { color: #fbbf24; }
.db-card--purple .db-card-num { color: #c084fc; }

/* ── Module Cards ── */
.db-modules {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.db-module-card {
  background: #0f2038;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.db-module-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.2);
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.db-module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}
.db-mod--blue   { background: linear-gradient(90deg,#1e40af,#2563eb); }
.db-mod--yellow { background: linear-gradient(90deg,#92400e,#d97706); }
.db-mod--purple { background: linear-gradient(90deg,#6b21a8,#9333ea); }
.db-mod--teal   { background: linear-gradient(90deg,#134e4a,#0d9488); }
.db-mod--orange { background: linear-gradient(90deg,#9a3412,#ea580c); }
.db-mod--pink   { background: linear-gradient(90deg,#9d174d,#db2777); }
.db-module-total {
  background: rgba(255,255,255,.25);
  border-radius: 20px;
  padding: 2px 12px;
  font-size: 15px;
  min-width: 34px;
  text-align: center;
}
.db-module-rows { padding: 8px 0 4px; }
.db-module-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  font-size: 13px;
  color: rgba(255,255,255,.65);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.db-module-row:last-child { border-bottom: none; }
/* Badge */
.db-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 20px;
  min-width: 32px;
  text-align: center;
}
.db-badge--green  { background: rgba(34,197,94,.2);  color: #4ade80; border: 1px solid rgba(34,197,94,.3); }
.db-badge--red    { background: rgba(239,68,68,.2);  color: #f87171; border: 1px solid rgba(239,68,68,.3); }
.db-badge--cyan   { background: rgba(6,182,212,.2);  color: #22d3ee; border: 1px solid rgba(6,182,212,.3); }
.db-badge--teal   { background: rgba(8,145,178,.2);  color: #67e8f9; border: 1px solid rgba(8,145,178,.3); }
.db-badge--yellow { background: rgba(245,158,11,.2); color: #fbbf24; border: 1px solid rgba(245,158,11,.3); }
.db-badge--blue   { background: rgba(59,130,246,.2); color: #60a5fa; border: 1px solid rgba(59,130,246,.3); }

@media (max-width:640px) {
  .db-stats-global { grid-template-columns: repeat(2, 1fr); }
  .db-modules      { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   SETTINGS TABS
═══════════════════════════════════════════════════════════ */
.set-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding-bottom: 14px;
}
.set-tab {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--text-muted, #94a3b8);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s;
}
.set-tab:hover { background: rgba(255,255,255,.1); color: #e2e8f0; }
.set-tab.active {
  background: var(--primary, #4f46e5);
  border-color: var(--primary, #4f46e5);
  color: #fff;
  box-shadow: 0 2px 12px rgba(79,70,229,.35);
}
.set-panel { display: none; }
.set-panel.active { display: block; }

.set-section-title {
  color: #f59e0b;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.set-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,.08);
  margin: 24px 0;
}
.set-hint {
  color: rgba(255,255,255,.35);
  font-size: 11px;
  margin-top: 5px;
  display: block;
}
.set-opt {
  opacity: .5;
  font-weight: 400;
}
.set-desc {
  color: var(--text-muted, #94a3b8);
  font-size: 13px;
  margin-bottom: 20px;
  margin-top: -8px;
}
.set-save-btn {
  width: auto !important;
  padding: 10px 28px !important;
  margin-top: 10px;
}
.set-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.set-check-item {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background .15s;
  font-size: 13px;
  color: #e2e8f0;
  user-select: none;
  pointer-events: auto;
  position: relative;
  z-index: 1;
}
.set-check-item:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.18); }
.set-check-item input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: #f59e0b;
  cursor: pointer;
  flex-shrink: 0;
  pointer-events: auto;
}
.set-check-item span {
  color: #e2e8f0;
  font-size: 13px;
}

/* ── Usia Pensiun ────────────────────────────────────────────── */
.pensiun-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.pensiun-tab {
  padding: 9px 22px;
  border-radius: 8px;
  border: 1.5px solid rgba(79,70,229,.4);
  background: #fff;
  color: #1e293b;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.pensiun-tab:hover { background: #f1f5f9; border-color: #4f46e5; }
.pensiun-tab.active {
  background: var(--primary, #4f46e5);
  border-color: var(--primary, #4f46e5);
  color: #fff;
  box-shadow: 0 2px 8px rgba(79,70,229,.35);
}

.pensiun-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 4px;
}
.pensiun-stat-card {
  border-radius: 12px;
  padding: 16px 14px;
  text-align: center;
  border: 1.5px solid rgba(0,0,0,.08);
  background: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,.07);
}
.pensiun-stat-card.psc--red    { background: #fff0f0; border-color: rgba(239,68,68,.4); }
.pensiun-stat-card.psc--orange { background: #fff7ed; border-color: rgba(249,115,22,.4); }
.pensiun-stat-card.psc--yellow { background: #fefce8; border-color: rgba(234,179,8,.4); }
.pensiun-stat-card.psc--blue   { background: #eff6ff; border-color: rgba(59,130,246,.4); }
.pensiun-stat-card.psc--green  { background: #f0fdf4; border-color: rgba(16,185,129,.4); }
.psc-num {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}
.psc-lbl { font-size: 11px; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.psc--red    .psc-num { color: #dc2626; font-weight:800; }
.psc--orange .psc-num { color: #ea580c; font-weight:800; }
.psc--yellow .psc-num { color: #ca8a04; font-weight:800; }
.psc--blue   .psc-num { color: #2563eb; font-weight:800; }
.psc--green  .psc-num { color: #059669; font-weight:800; }

/* Badge urgensi di tabel */
.badge-pensiun {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: .3px;
}
.badge-pensiun.sudah  { background: #dc2626; color: #fff; }
.badge-pensiun.kritis { background: #ea580c; color: #fff; }
.badge-pensiun.segera { background: #ca8a04; color: #fff; }
.badge-pensiun.akan   { background: #2563eb; color: #fff; }
.badge-pensiun.normal { background: #16a34a; color: #fff; }

.form-select-sm {
  background: var(--card-bg, #1e293b);
  border: 1.5px solid rgba(255,255,255,.18);
  color: var(--text, #e2e8f0);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  cursor: pointer;
}
.form-select-sm option {
  background: #1e293b;
  color: #e2e8f0;
}
.form-input-sm {
  background: var(--card-bg, #1e293b);
  border: 1.5px solid rgba(255,255,255,.18);
  color: var(--text, #e2e8f0);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  min-width: 220px;
}
.form-input-sm::placeholder { color: var(--text-muted, #64748b); }
.form-input-sm:focus, .form-select-sm:focus {
  outline: none;
  border-color: var(--primary, #4f46e5);
}

/* ── Notif Pensiun di tabel admin ───────────────────────────── */
.pensiun-notif {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  vertical-align: middle;
  white-space: nowrap;
  cursor: default;
  max-width: fit-content;
  line-height: 1.6;
}
.pensiun-sudah {
  background: #dc2626;
  color: #fff;
  border: none;
  animation: pensiun-pulse 1.5s infinite;
}
.pensiun-kritis {
  background: #ea580c;
  color: #fff;
  border: none;
  animation: pensiun-pulse 2s infinite;
}
.pensiun-segera {
  background: #ca8a04;
  color: #fff;
  border: none;
}
.pensiun-akan {
  background: #2563eb;
  color: #fff;
  border: none;
}
@keyframes pensiun-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .55; }
}

/* ============================================================
   RAPAT TABLE — sama persis dengan .dosen-table agar tidak krem
   ============================================================ */
.rapat-table { width:100%; border-collapse:collapse; }
.rapat-table thead { background:#0a1628; }
.rapat-table th {
  padding:11px 16px; font-size:11px; font-weight:600;
  color:#f59e0b; text-transform:uppercase;
  letter-spacing:.5px; border-bottom:2px solid #f59e0b;
  background:#0a1628; text-align:left;
}
.rapat-table td {
  padding:12px 16px; font-size:14px;
  border-bottom:1px solid rgba(255,255,255,.07);
  color:#e2e8f0;
  background:#0f1f3d;
  vertical-align:middle;
}
.rapat-table tr:nth-child(even) td { background:#0d1b35; }
.rapat-table tr:last-child td { border-bottom:none; }
.rapat-table tr:hover td { background:rgba(245,158,11,.07)!important; }
/* Paksa tidak krem saat tap/klik di mobile maupun desktop */
.rapat-table tr { -webkit-tap-highlight-color: transparent; }
.rapat-table tr:active td,
.rapat-table tr:focus td,
.rapat-table tr:nth-child(even):active td,
.rapat-table tr:nth-child(even):focus td {
  background:#0d1b35 !important;
}
.rapat-table tr:nth-child(odd):active td,
.rapat-table tr:nth-child(odd):focus td {
  background:#0f1f3d !important;
}

/* ============================================================
   ABSEN RAPAT & TTD QRCODE — wrapper override
   ============================================================ */
#page-admin-absen-rapat .table-wrapper,
#page-admin-ttd-qrcode  .table-wrapper {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.1);
  border-top: 3px solid #f59e0b;
  border-radius: 14px;
  overflow: visible;
}

/* padding area form dalam panel TTD */
#page-admin-ttd-qrcode .ttd-form-body {
  padding: 8px 20px 20px;
}

#absen-search:focus,
#absen-bulan:focus {
  border-color: rgba(99,102,241,.5);
  background: rgba(99,102,241,.08);
}

/* badge status rapat */
#absen-tbody-rapat td { vertical-align: middle; }

/* ============================================================
   TTD QRCODE
   ============================================================ */
.ttd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

#ttd-qr-wrap {
  transition: background .2s;
}
#ttd-qr-wrap img {
  border-radius: 10px;
  box-shadow: 0 0 0 4px rgba(255,255,255,.08);
}

/* download buttons hover */
#ttd-btn-wrap button:hover {
  filter: brightness(1.15);
}

/* ============================================================
   RESPONSIVE — layar kecil
   ============================================================ */
@media (max-width: 768px) {
  .ttd-grid {
    grid-template-columns: 1fr;
  }
  #absen-search { min-width: unset; width: 100%; }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET & MOBILE (tambahan komprehensif)
   ════════════════════════════════════════════════════════════ */

/* ── Tablet (≤ 1024px) ───────────────────────────────────── */
@media (max-width: 1024px) {
  /* Sidebar lebih sempit di tablet */
  :root { --sidebar-w: 200px; }

  /* Content area padding dikurangi */
  .content-area { padding: 28px 32px; }
  .beranda-section { padding: 28px 32px 0; }

  /* Tabel scroll horizontal */
  .table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { min-width: 600px; }

  /* Dashboard modules */
  .db-modules { grid-template-columns: repeat(2, 1fr); }

  /* Prodi cards */
  #prodi-cards-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Home stat */
  .home-stat-grid { grid-template-columns: repeat(2, 1fr); }

  /* Beranda stats */
  .beranda-stats-row { grid-template-columns: repeat(2, 1fr); }

  /* Hak akses grid */
  #akses-checkbox-grid label {
    grid-template-columns: 1fr 48px 48px 48px 48px;
  }
}

/* ── Mobile Landscape / Tablet kecil (≤ 768px) ───────────── */
@media (max-width: 768px) {
  /* Content area */
  .content-area { padding: 20px 16px; }
  .beranda-section { padding: 20px 16px 0; }

  /* Topbar */
  .pub-topbar { padding: 0 12px; }
  .pub-topbar-right { gap: 6px; }

  /* Tabel scroll */
  .table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { min-width: 580px; }
  th, td { padding: 10px 12px; font-size: 12px; }

  /* Search box full width */
  .search-box { width: 100%; }
  .search-box input { width: 100%; min-width: unset; }
  .table-header { flex-direction: column; align-items: flex-start; }
  .table-header > * { width: 100%; }

  /* Admin pagination */
  .admin-pag-wrap { flex-direction: column; align-items: center; }

  /* Modal full width */
  .modal-overlay .modal { margin: 8px; padding: 20px 16px; max-height: 95vh; }
  .grid-2 { grid-template-columns: 1fr !important; }

  /* Dashboard */
  .db-welcome-bar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .db-stats-global { grid-template-columns: repeat(2, 1fr); }
  .db-modules { grid-template-columns: 1fr; }

  /* Prodi cards */
  #prodi-cards-grid { grid-template-columns: 1fr !important; }

  /* Home banner */
  .home-banner { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px 16px; }
  .home-banner-icon { display: none; }
  .home-banner-greeting { font-size: 22px; }

  /* Home stat grid 2 kolom */
  .home-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .home-stat-num { font-size: 36px; }

  /* Charts stack */
  .home-charts-grid { grid-template-columns: 1fr; padding: 12px 16px 0; }

  /* Hak akses — sembunyikan kolom tambah/edit/hapus, scroll jika perlu */
  #akses-checkbox-grid { overflow-x: auto; }
  #akses-checkbox-grid label {
    grid-template-columns: 1fr 44px 44px 44px 44px;
    font-size: 12px;
    padding: 6px 8px;
  }

  /* Settings tabs wrap */
  .set-tabs { gap: 4px; }
  .set-tab { font-size: 12px; padding: 6px 12px; }

  /* Info doc grid 1 col */
  .info-doc-grid { grid-template-columns: 1fr; }

  /* Absen rapat toolbar */
  #absen-search { width: 100%; min-width: unset; }
  #absen-bulan { width: 100%; }

  /* TTD grid 1 col */
  .ttd-grid { grid-template-columns: 1fr; }

  /* Beranda stats 2 col */
  .beranda-stats-row { grid-template-columns: repeat(2, 1fr); }

  /* Survei section */
  .admin-section { padding: 12px; }

  /* Sidebar overlay backdrop */
  .sidebar-backdrop {
    display: block;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 240;
    opacity: 0; pointer-events: none;
    transition: opacity .28s;
  }
  .sidebar.open ~ .sidebar-backdrop,
  body.sidebar-open .sidebar-backdrop { opacity: 1; pointer-events: all; }
}

/* ── Mobile Portrait (≤ 480px) ───────────────────────────── */
@media (max-width: 480px) {
  /* Topbar icons */
  .pub-topbar-title { font-size: 13px; }

  /* Content */
  .content-area { padding: 16px 12px; }
  .beranda-section { padding: 16px 12px 0; }

  /* Stats 1 kolom di mobile portrait */
  .beranda-stats-row { grid-template-columns: 1fr 1fr; }
  .home-stat-grid { grid-template-columns: 1fr 1fr; }
  .db-stats-global { grid-template-columns: repeat(2, 1fr); }

  /* Home stat num lebih kecil */
  .home-stat-num { font-size: 30px; }
  .home-stat-card { padding: 14px 14px; }

  /* Tabel font lebih kecil */
  th, td { padding: 8px 10px; font-size: 11px; }

  /* Modal full screen hampir */
  .modal-overlay .modal { margin: 4px; padding: 16px 12px; border-radius: 12px; }

  /* Tombol aksi tabel lebih kecil */
  .btn-act { padding: 5px 8px; font-size: 11px; }

  /* Hak akses label font */
  #akses-checkbox-grid label { font-size: 11px; }

  /* Prodi cards 1 col */
  #prodi-cards-grid { grid-template-columns: 1fr !important; }

  /* Login card */
  .login-card, .card { padding: 24px 16px; }

  /* Banner publik */
  .home-banner-greeting { font-size: 18px; }
  .beranda-banner { padding: 24px 16px 20px; }
  .beranda-banner h1 { font-size: 22px; }

  /* Footer */
  .site-footer { padding: 10px 16px; }
  .site-footer-text { font-size: 11px; }

  /* Bstat */
  .bstat-main { padding: 14px 12px; }
  .bstat-num { font-size: 28px; }
}

/* ── Mobile kecil (≤ 360px) ─────────────────────────────── */
@media (max-width: 360px) {
  .content-area { padding: 12px 10px; }
  .home-stat-grid { grid-template-columns: 1fr; }
  .beranda-stats-row { grid-template-columns: 1fr; }
  .db-stats-global { grid-template-columns: 1fr 1fr; }
  .pub-topbar-title { display: none; }
  th, td { padding: 6px 8px; font-size: 10px; }
}

/* ── Icon kalender putih pada input date/datetime ─────────────── */
input[type="date"],
input[type="datetime-local"],
input[type="time"],
input[type="month"],
input[type="week"] {
  color-scheme: dark;
}
