﻿/* ==========================================================================
   SI-HADIR — stylesheet utama
   ========================================================================== */

/* Font Lettera Mono LL dibuat otomatis oleh server dari file di public/fonts/
   (nama file mengandung "Lettera"). Kalau belum ada, tabel memakai DM Mono. */
@import url('/css/fonts.css');

@font-face {
  font-family: 'NType 82';
  src: url('/fonts/NType82-Regular.ttf') format('truetype');
  font-display: swap;
}

:root {
  --font-serif: 'NType 82', Georgia, 'Times New Roman', serif;
  --font-dot: 'Doto', ui-monospace, monospace;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-data: 'Lettera Mono LL', 'DM Mono', ui-monospace, 'Cascadia Mono', monospace;

  --ink: #141414;
  --ink-2: #3d3d3d;
  --muted: #7a7a7a;
  --line: #e7e7e7;
  --line-soft: #f0f0f0;
  --surface: #ffffff;
  --field: #f2f2f4;
  --bg-gray: #f5f5f5;
  --bg-pink: #f9e8e8;
  --accent: #7a2020;            /* merah marun pada username & ikon judul */
  --btn-dark: #0d0d1c;
  --sidebar-top: #3a3a3a;
  --sidebar-bottom: #1a1a1a;

  --ok-bg: #c8f1da;   --ok-fg: #17663b;
  --warn-bg: #f6efc6; --warn-fg: #7c6208;
  --bad-bg: #f4a9a9;  --bad-fg: #6e1414;
  --info-bg: #dfe5ef; --info-fg: #34435c;

  --radius-lg: 20px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-card: 0 4px 0 rgba(0, 0, 0, 0.06), 0 10px 24px -14px rgba(0, 0, 0, 0.25);
  --shadow-pop: 0 18px 50px -12px rgba(0, 0, 0, 0.35);
  --sidebar-w: 280px;
}

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

html, body { margin: 0; height: 100%; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg-gray);
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.icon { width: 1em; height: 1em; flex: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 2px solid #4b6bfb; outline-offset: 2px; }

/* ==========================================================================
   Logo titik-titik
   ========================================================================== */

.logo-dot {
  font-family: var(--font-dot);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}

/* ==========================================================================
   Tombol
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 16px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font-family: var(--font-serif); font-size: 14px; letter-spacing: 0.04em;
  text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, transform .1s, opacity .15s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn .icon { width: 16px; height: 16px; }

.btn-dark { background: var(--btn-dark); color: #fff; }
.btn-dark:hover { background: #24243a; }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.btn-light:hover { background: #fafafa; border-color: #d6d6d6; }
.btn-danger { background: #9b1c1c; color: #fff; }
.btn-danger:hover { background: #811515; }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { background: rgba(0,0,0,.04); }
.btn-sm { height: 30px; padding: 0 12px; font-size: 13px; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; padding: 0;
  border: 0; border-radius: 6px; background: transparent; color: var(--ink);
}
.icon-btn:hover { background: rgba(0,0,0,.06); }
.icon-btn .icon { width: 16px; height: 16px; }
.icon-btn.danger:hover { background: #fde8e8; color: #9b1c1c; }

/* ==========================================================================
   Landing & login
   ========================================================================== */

.hero-page {
  min-height: 100vh;
  display: grid; place-items: center;
  padding: 48px 16px;
  background: #f6f6f6;
  text-align: center;
}

.hero { max-width: 760px; }
.hero .logo-dot { font-size: clamp(56px, 11vw, 104px); margin-bottom: 48px; }

.hero h1 {
  margin: 0 0 18px;
  font-family: var(--font-sans); font-weight: 700;
  font-size: clamp(30px, 5.2vw, 46px); line-height: 1.1; letter-spacing: -0.01em;
}
.hero h1 .fade {
  background: linear-gradient(180deg, #1a1a1a 35%, #a8a8a8 110%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero p {
  margin: 0 auto 36px; max-width: 670px;
  font-family: var(--font-serif); font-size: 15px; line-height: 1.55; color: #2a2a2a;
}

.hero .btn { height: 42px; padding: 0 22px; font-size: 15px; border-radius: 10px; background: #1b1b1b; color: #fff; }
.hero .btn:hover { background: #333; }

.hero-anim > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.hero-anim > *:nth-child(2) { animation-delay: .08s; }
.hero-anim > *:nth-child(3) { animation-delay: .16s; }
.hero-anim > *:nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.login-card {
  width: 100%; max-width: 400px;
  padding: 36px 32px 32px;
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  text-align: left;
}
.login-card .logo-dot { display: block; text-align: center; font-size: 46px; margin-bottom: 10px; }
.login-card .subtitle {
  margin: 0 0 28px; text-align: center;
  font-family: var(--font-serif); font-size: 14px; color: var(--muted);
}
.login-card .btn { width: 100%; height: 42px; margin-top: 8px; }
.login-card .back {
  display: block; margin-top: 18px; text-align: center;
  font-family: var(--font-serif); font-size: 13px; color: var(--muted); text-decoration: none;
}
.login-card .back:hover { color: var(--ink); }

/* ==========================================================================
   Kerangka aplikasi: sidebar + konten
   ========================================================================== */

.shell { display: flex; min-height: 100vh; }

.sidebar {
  position: sticky; top: 0;
  width: var(--sidebar-w); height: 100vh; flex: none;
  display: flex; flex-direction: column;
  padding: 56px 20px 32px;
  background: linear-gradient(180deg, var(--sidebar-top) 0%, #222 30%, var(--sidebar-bottom) 100%);
  color: #fff;
  box-shadow: 4px 0 18px rgba(0,0,0,.18);
  z-index: 30;
}

.sidebar .logo-dot {
  display: block; text-align: center; text-decoration: none;
  font-size: 40px; margin-bottom: 52px; color: #fff;
}

.nav { display: flex; flex-direction: column; gap: 6px; }

.nav a, .nav button {
  position: relative;
  display: flex; align-items: center; gap: 16px;
  padding: 11px 18px;
  border: 1px solid transparent; border-radius: 14px;
  background: none; color: #f2f2f2; text-decoration: none; text-align: left;
  font-family: var(--font-serif); font-size: 21px; letter-spacing: 0.01em; white-space: nowrap;
  transition: background-color .2s, border-color .2s;
}
.nav .icon { width: 22px; height: 22px; stroke-width: 1.6; }
.nav a:hover { background: rgba(255,255,255,.06); }

/* Menu aktif: pil kaca seperti di desain */
.nav a.active {
  background: linear-gradient(100deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,.08) 55%, rgba(255,255,255,.02) 100%);
  border-color: rgba(255,255,255,.38);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 6px 18px rgba(0,0,0,.35);
}

.sidebar .nav-bottom { margin-top: auto; }

.main {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  padding: 0 44px 40px;
}
body.theme-pink .main { background: var(--bg-pink); }
body.theme-gray .main { background: var(--bg-gray); }

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 92px;
}

.status-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 7px;
  height: 26px; padding: 0 10px;
  border-radius: 99px; background: rgba(255,255,255,.7);
  border: 1px solid rgba(0,0,0,.06);
  font-family: var(--font-data); font-size: 11px; color: var(--ink-2);
}
.status-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #b5b5b5; }
.status-pill.on .dot { background: #22a25a; box-shadow: 0 0 0 3px rgba(34,162,90,.18); }
.status-pill.off .dot { background: #d14343; }

.topbar-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.topbar-right .divider { width: 1.5px; height: 30px; background: var(--accent); opacity: .8; }

.bell { position: relative; }
.bell > .icon-btn { width: 36px; height: 36px; }
.bell > .icon-btn .icon { width: 22px; height: 22px; }
.bell .badge-dot {
  position: absolute; top: 6px; right: 7px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #d14343; border: 2px solid #fff; display: none;
}
.bell.has-new .badge-dot { display: block; }

.user-chip { display: flex; align-items: center; gap: 10px; }
.avatar {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, #5a2a2a, #1f1f1f); color: #fff;
  font-family: var(--font-serif); font-size: 13px;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(0,0,0,.15);
}
.user-chip .who { font-family: var(--font-serif); font-size: 12px; line-height: 1.25; color: var(--accent); }

.menu-toggle { display: none; }

/* Dropdown notifikasi */
.dropdown {
  position: absolute; right: 0; top: calc(100% + 8px);
  width: 320px; max-height: 380px; overflow: auto;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-pop);
  border: 1px solid var(--line);
  z-index: 50; display: none;
}
.dropdown.open { display: block; animation: pop .14s ease-out; }
.dropdown h4 {
  margin: 0; padding: 12px 14px; border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-serif); font-weight: 400; font-size: 14px;
}
.notif { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); }
.notif:last-child { border-bottom: 0; }
.notif .n-name { font-family: var(--font-data); font-size: 12px; }
.notif .n-time { font-family: var(--font-data); font-size: 11px; color: var(--muted); }
.dropdown .empty { padding: 22px 14px; }

@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Kartu & elemen umum
   ========================================================================== */

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.panel { padding: 22px 24px 18px; }

.panel-head {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 14px;
  margin-bottom: 14px;
}
.panel-title { margin: 0 0 4px; font-family: var(--font-serif); font-weight: 400; font-size: 18px; letter-spacing: 0.02em; }
.panel-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.section-title {
  display: flex; align-items: center; gap: 10px;
  margin: 28px 0 14px;
  font-family: var(--font-data); font-weight: 500; font-size: 16px; letter-spacing: 0.12em;
}
.section-title .icon { width: 18px; height: 18px; color: var(--accent); }

.date-chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 22px; padding: 0 8px 0 2px;
  border: 0; border-radius: 6px; background: transparent;
  font-family: var(--font-serif); font-size: 11.5px; color: var(--ink-2);
}
.date-chip .icon { width: 14px; height: 14px; }
button.date-chip { padding: 0 10px 0 6px; background: #e6e6e6; }
button.date-chip:hover { background: #dcdcdc; }
button.date-chip .caret { width: 12px; height: 12px; opacity: .6; }

.search {
  position: relative; display: flex; align-items: center;
}
.search .icon { position: absolute; left: 10px; width: 14px; height: 14px; color: var(--muted); pointer-events: none; }
.search input {
  width: 200px; height: 30px; padding: 0 12px 0 30px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  background: var(--field);
  font-family: var(--font-serif); font-size: 12px;
}
.search input:focus { outline: none; border-color: #4b6bfb; box-shadow: 0 0 0 3px rgba(75,107,251,.15); background: #fff; }

.select {
  max-width: 280px; text-overflow: ellipsis;
  height: 30px; padding: 0 30px 0 10px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  -webkit-appearance: none; appearance: none;
  font-family: var(--font-data); font-size: 12px;
}

/* ==========================================================================
   Tabel
   ========================================================================== */

.table-wrap { overflow-x: auto; }

table.data {
  width: 100%; border-collapse: collapse;
  font-size: 12.5px;
}
table.data th {
  position: sticky; top: 0;
  padding: 10px 12px; text-align: left; white-space: nowrap;
  font-family: var(--font-sans); font-weight: 500; font-size: 11.5px; color: var(--ink-2);
  background: #fff; border-bottom: 1px solid var(--line);
}
table.data td {
  padding: 9px 12px; white-space: nowrap;
  font-family: var(--font-data); color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
}
table.data tbody tr { transition: background-color .3s; }
table.data tbody tr:hover { background: #fafafa; }
table.data .actions { width: 1%; text-align: center; }
table.data .actions-cell { display: flex; justify-content: center; gap: 4px; }
table.data .muted { color: var(--muted); }

tr.row-new { animation: slideIn .5s cubic-bezier(.2,.7,.2,1); }
tr.row-new td { background: #fffbe6; transition: background-color 2.5s ease; }
tr.row-new.settled td { background: transparent; }
@keyframes slideIn { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }

.badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 78px; height: 18px; padding: 0 10px;
  border-radius: 6px;
  font-family: var(--font-sans); font-weight: 600; font-size: 10px;
}
.badge.hadir     { background: var(--ok-bg);   color: var(--ok-fg); }
.badge.terlambat { background: var(--warn-bg); color: var(--warn-fg); }
.badge.tk,
.badge.ditolak   { background: var(--bad-bg);  color: var(--bad-fg); }
.badge.sudah     { background: var(--info-bg); color: var(--info-fg); }

.empty {
  padding: 40px 16px; text-align: center;
  font-family: var(--font-serif); font-size: 14px; color: var(--muted);
}
.empty strong { display: block; margin-bottom: 4px; color: var(--ink-2); font-weight: 400; font-size: 15px; }

.table-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding-top: 12px; font-family: var(--font-data); font-size: 11.5px; color: var(--muted);
}

/* ==========================================================================
   Dashboard
   ========================================================================== */

.welcome {
  position: relative; overflow: hidden;
  min-height: 150px; padding: 28px 30px;
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    radial-gradient(120% 140% at 85% 20%, rgba(255,255,255,.10), transparent 55%),
    linear-gradient(115deg, #1b1b1b 0%, #2f2f2f 55%, #3d3d3d 100%);
  box-shadow: var(--shadow-card);
}
/* pola titik halus, senada dengan logo */
.welcome::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.09) 1.2px, transparent 1.4px);
  background-size: 14px 14px;
  -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 85%);
          mask-image: linear-gradient(100deg, transparent 30%, #000 85%);
  pointer-events: none;
}
.welcome > * { position: relative; z-index: 1; }
.welcome .hello { margin: 0 0 6px; font-family: var(--font-serif); font-size: 15px; opacity: .85; }
.welcome .name { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 26px; }
.welcome .role { margin: 4px 0 22px; font-family: var(--font-serif); font-size: 12px; opacity: .7; }
.welcome .date-chip { color: #fff; padding: 0; opacity: .9; }

.session-strip {
  display: flex; align-items: center; gap: 14px;
  margin-top: 16px; padding: 10px 12px 10px 14px;
  border-radius: 10px; background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 4px 10px -6px rgba(0,0,0,.2);
  border: 1px solid #ececec;
}
.session-strip .s-icon {
  display: grid; place-items: center; flex: none;
  width: 30px; height: 30px; border-radius: 7px; background: #e7e7e7;
}
.session-strip .s-icon .icon { width: 18px; height: 18px; }
.session-strip .s-text { flex: 1; min-width: 0; }
.session-strip .s-name { font-family: var(--font-serif); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.session-strip .s-meta { font-family: var(--font-data); font-size: 11px; color: var(--muted); }
.session-strip .s-actions { display: flex; align-items: center; gap: 8px; }

.pill-status {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 12px; border-radius: 99px;
  font-family: var(--font-data); font-size: 11.5px; letter-spacing: 0.04em;
}
.pill-status.live { background: var(--ok-bg); color: var(--ok-fg); }
.pill-status.live::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor;
  animation: pulse 1.6s ease-in-out infinite;
}
.pill-status.idle { background: #ececec; color: var(--muted); }
@keyframes pulse { 50% { opacity: .25; } }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.stat {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 140px; padding: 24px 28px; text-align: center;
}
.stat .label { font-family: var(--font-serif); font-size: 13px; }
.stat .value { margin: 12px 0 14px; font-family: var(--font-serif); font-size: 40px; line-height: 1; letter-spacing: 0.01em; }
.stat .caption { font-family: var(--font-serif); font-size: 11.5px; color: var(--ink-2); }
.progress { width: 100%; height: 8px; border-radius: 99px; background: #dcdcdc; overflow: hidden; }
.progress > span { display: block; height: 100%; width: 0; border-radius: inherit; background: #1b1b1b; transition: width .6s cubic-bezier(.2,.7,.2,1); }

.mini-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-family: var(--font-data); font-size: 11px; color: var(--muted); }
.mini-stats b { font-weight: 500; color: var(--ink); }

.live-card { margin-top: 18px; padding: 16px 14px 8px; }
.live-card .live-title {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 0 0 6px; padding: 0 12px;
  font-family: var(--font-serif); font-weight: 400; font-size: 14px; letter-spacing: 0.14em;
}
.live-card .live-title small { font-family: var(--font-data); font-size: 11px; letter-spacing: 0; color: var(--muted); }

/* ==========================================================================
   Modal
   ========================================================================== */

.overlay {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 16px;
  background: rgba(110, 70, 70, .28);
  animation: fade .15s ease-out;
}
.overlay[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }

.modal {
  width: 100%; max-width: 330px;
  padding: 18px 16px 14px;
  background: #fff; border-radius: 6px; box-shadow: var(--shadow-pop);
  animation: pop .18s ease-out;
}
.modal.wide { max-width: 420px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.modal-head h3 { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 14px; letter-spacing: 0.03em; }
.modal-head .icon-btn { width: 24px; height: 24px; margin: -6px -6px 0 0; }
.modal-head .icon-btn .icon { width: 13px; height: 13px; }
.modal p.msg { margin: 0 0 6px; font-family: var(--font-serif); font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.modal-foot .btn { height: 26px; padding: 0 12px; font-size: 11.5px; border-radius: 4px; }

/* ==========================================================================
   Form
   ========================================================================== */

.field { display: block; margin-bottom: 12px; }
.field > span {
  display: block; margin-bottom: 5px;
  font-family: var(--font-serif); font-size: 10.5px; color: var(--ink);
}
.field input, .field select {
  display: block; width: 100%; height: 30px; padding: 0 10px;
  border: 1px solid transparent; border-radius: 4px; background: var(--field);
  font-family: var(--font-data); font-size: 11.5px; letter-spacing: 0.04em;
}
.field select {
  -webkit-appearance: none; appearance: none;
  background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
}
.field input:focus, .field select:focus { outline: none; border-color: #4b6bfb; box-shadow: 0 0 0 3px rgba(75,107,251,.15); background-color: #fff; }
.field input::placeholder { color: #8a8a8a; }
/* Kolom terkunci (misalnya Kelas yang mengikuti mata kuliah) */
.field input[readonly], .field input:disabled {
  background: #e9e9ec; color: var(--ink-2); cursor: not-allowed;
  border-color: transparent;
}
.field .hint { display: block; margin-top: 5px; font-family: var(--font-data); font-size: 10.5px; color: var(--muted); }
.field-row { display: flex; gap: 8px; align-items: flex-end; }
.field-row .field { flex: 1; }

.form-error {
  margin: 4px 0 0; padding: 8px 10px; border-radius: 6px;
  background: #fdecec; color: #8a1c1c;
  font-family: var(--font-serif); font-size: 12px;
}
.form-error:empty { display: none; }

.login-card .field > span { font-size: 12px; }
.login-card .field input { height: 40px; font-size: 13px; border-radius: 8px; }

.uid-fill {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin: -2px 0 12px; padding: 8px 10px;
  border: 1px dashed #d3b6b6; border-radius: 6px; background: #fdf6f6;
  font-family: var(--font-data); font-size: 10.5px; color: var(--ink-2);
}
.uid-fill[hidden] { display: none; }

/* ==========================================================================
   Kalender
   ========================================================================== */

.datepicker-anchor { position: relative; display: inline-block; }

.calendar {
  position: absolute; left: 0; top: calc(100% + 6px); z-index: 60;
  width: 196px; padding: 8px;
  background: #fff; border: 1px solid #999; border-radius: 3px;
  box-shadow: var(--shadow-pop);
  font-family: var(--font-sans);
  animation: pop .14s ease-out;
}
.calendar[hidden] { display: none; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-bottom: 6px; }
.cal-head .icon-btn { width: 22px; height: 22px; background: #eee; border-radius: 4px; }
.cal-head .icon-btn .icon { width: 13px; height: 13px; }
.cal-head select {
  border: 0; background: transparent; font-size: 11.5px; font-weight: 500; cursor: pointer;
  padding: 2px; border-radius: 4px;
}
.cal-head select:hover { background: #f1f1f1; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cal-grid .dow { padding: 4px 0; font-size: 9.5px; font-weight: 600; color: #555; }
.cal-grid button {
  height: 24px; padding: 0; border: 0; border-radius: 4px; background: none;
  font-size: 10.5px; color: var(--ink);
}
.cal-grid button:hover { background: #efefef; }
.cal-grid button.out { color: #c4c4c4; }
.cal-grid button.today { box-shadow: inset 0 0 0 1px #999; }
.cal-grid button.selected { background: var(--btn-dark); color: #fff; }
.cal-grid button.has-data::after {
  content: ''; display: block; width: 3px; height: 3px; margin: -3px auto 0; border-radius: 50%; background: var(--accent);
}
.cal-grid button.selected.has-data::after { background: #fff; }
.cal-foot { display: flex; justify-content: space-between; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line-soft); }
.cal-foot button { border: 0; background: none; font-size: 10.5px; color: #4b5bdc; padding: 2px 4px; }

/* ==========================================================================
   Pengaturan
   ========================================================================== */

.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.settings-grid .span-2 { grid-column: 1 / -1; }
.settings-card { padding: 22px 24px; }
.settings-card .panel-title { display: flex; align-items: center; gap: 10px; }
.settings-card .panel-title .icon { width: 18px; height: 18px; color: var(--accent); }
.settings-card .desc { margin: 0 0 16px; font-family: var(--font-serif); font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.settings-card .field > span { font-size: 11.5px; }
.settings-card .field input, .settings-card .field select { height: 34px; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 16px; font-size: 12px; }
.kv dt { font-family: var(--font-serif); color: var(--muted); }
.kv dd { margin: 0; font-family: var(--font-data); }

.code-box {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border-radius: 8px; background: #1b1b1b; color: #e9e9e9;
  font-family: var(--font-data); font-size: 12px; overflow-x: auto;
}
.code-box code { white-space: nowrap; }
.code-box .icon-btn { color: #e9e9e9; }
.code-box .icon-btn:hover { background: rgba(255,255,255,.12); }

.course-form {
  display: grid; grid-template-columns: 110px 1fr; gap: 0 8px;
  margin-top: 16px;
}
.course-form .field-name { grid-column: 1 / -1; }
.course-form .modal-foot { grid-column: 1 / -1; margin-top: 0; }

/* ==========================================================================
   Perkuliahan — grid kartu mata kuliah
   ========================================================================== */

.mk-section { grid-column: 1 / -1; }

.mk-section-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  margin-bottom: 18px;
}
.mk-section-head .desc { margin-bottom: 0; }

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.mk-card {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 160px; padding: 18px 16px 14px;
  border-radius: 14px;
  background: var(--mk-color, #1e3a5f);
  color: #fff;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  outline: none;
  overflow: hidden;
}
.mk-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 140% 100% at 110% -10%, rgba(255,255,255,.14), transparent 60%);
  pointer-events: none;
}
.mk-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px -8px rgba(0,0,0,.35); }
.mk-card:focus-visible { outline: 3px solid rgba(255,255,255,.8); outline-offset: 2px; }
.mk-card:active { transform: translateY(0); }

.mk-card-top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  margin-bottom: 18px;
}
.mk-card-info { flex: 1; min-width: 0; }
.mk-card-name {
  font-family: var(--font-sans); font-weight: 600; font-size: 14.5px; line-height: 1.3;
  margin-bottom: 5px; word-break: break-word;
}
.mk-card-kelas {
  font-family: var(--font-data); font-size: 11px; opacity: .75;
}
.mk-card-badge {
  flex: none;
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 8px;
  background: rgba(255,255,255,.18);
  font-family: var(--font-sans); font-weight: 700; font-size: 12.5px;
  letter-spacing: 0.03em;
}

.mk-card-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.mk-card-kode {
  font-family: var(--font-data); font-size: 11px; opacity: .7;
}
.mk-card-actions { display: flex; align-items: center; gap: 6px; }

.mk-card-open {
  display: inline-flex; align-items: center; gap: 5px;
  height: 26px; padding: 0 10px; border: 0; border-radius: 6px;
  background: rgba(255,255,255,.18); color: #fff;
  font-family: var(--font-sans); font-size: 11.5px; font-weight: 500;
  cursor: pointer; white-space: nowrap;
  transition: background-color .15s;
}
.mk-card-open:hover { background: rgba(255,255,255,.32); }
.mk-card-open .icon { width: 12px; height: 12px; }

.mk-card-del {
  width: 26px; height: 26px; border-radius: 6px;
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.75);
}
.mk-card-del:hover { background: rgba(220,50,50,.5); color: #fff; }
.mk-card-del .icon { width: 13px; height: 13px; }

.sim-result {
  margin-top: 12px; padding: 10px 12px; border-radius: 8px;
  font-family: var(--font-data); font-size: 11.5px; line-height: 1.5;
  background: var(--field); white-space: pre-wrap; word-break: break-word;
}
.sim-result:empty { display: none; }
.sim-result.ok { background: var(--ok-bg); color: var(--ok-fg); }
.sim-result.warn { background: var(--warn-bg); color: var(--warn-fg); }
.sim-result.bad { background: #fbe1e1; color: var(--bad-fg); }

/* ==========================================================================
   Toast
   ========================================================================== */

.toasts {
  position: fixed; right: 20px; bottom: 20px; z-index: 200;
  display: flex; flex-direction: column; gap: 8px; align-items: flex-end;
}
.toast {
  max-width: 340px; padding: 10px 14px;
  border-radius: 10px; background: #1b1b1b; color: #fff;
  box-shadow: var(--shadow-pop);
  font-family: var(--font-serif); font-size: 13px;
  animation: toastIn .25s cubic-bezier(.2,.7,.2,1);
}
.toast.error { background: #8a1c1c; }
.toast.leave { opacity: 0; transform: translateY(6px); transition: all .25s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

/* ==========================================================================
   Responsif
   ========================================================================== */

@media (max-width: 1100px) {
  :root { --sidebar-w: 256px; }
  .main { padding: 0 24px 32px; }
  .nav a, .nav button { padding: 10px 14px; font-size: 17px; }
}

@media (max-width: 900px) {
  :root { --sidebar-w: min(280px, 84vw); }
  .shell { display: block; }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0;
    transform: translateX(-100%); transition: transform .25s ease;
  }
  body.nav-open .sidebar { transform: none; }
  body.nav-open::after {
    content: ''; position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.35);
  }
  .main { min-height: 100vh; padding: 0 16px 28px; }
  .topbar { height: 72px; }
  .menu-toggle { display: inline-grid; }
  .menu-toggle .icon { width: 22px; height: 22px; }
  .status-pills { display: none; }
  .user-chip .who { display: none; }
  .stats, .settings-grid { grid-template-columns: 1fr; }
  .panel { padding: 18px 14px 14px; }
  .search input { width: 160px; }
}

@media (max-width: 520px) {
  .panel-head { flex-direction: column; }
  .panel-tools { width: 100%; }
  .search { flex: 1; }
  .search input { width: 100%; }
  .session-strip { flex-wrap: wrap; }
  .session-strip .s-actions { width: 100%; justify-content: flex-end; }
  .stat .value { font-size: 34px; }
  .welcome { padding: 22px 20px; }
}



/* ==========================================================================
   Animasi Perkuliahan
   ========================================================================== */

/* -- keyframes baru -- */
@keyframes fadeSlideUp   { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadeSlideLeft { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: none; } }
@keyframes scaleIn       { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }
@keyframes tabContent    { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes rowSlide      { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes cardPop       { from { opacity: 0; transform: translateY(20px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes bannerReveal  { from { opacity: 0; transform: translateY(-12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes countBounce   { 0%,100% { transform: scale(1); } 40% { transform: scale(1.35); } 70% { transform: scale(.9); } }
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

/* -- Transisi antar view (list <-> detail) -- */
.perk-view { animation: fadeSlideUp .45s cubic-bezier(.2,.7,.2,1) both; }

/* -- Grid kartu: tiap kartu muncul berurutan -- */
.mk-card {
  animation: cardPop .5s cubic-bezier(.2,.7,.2,1) both;
  animation-delay: calc(var(--card-i, 0) * 60ms);
}

/* -- Hover kartu: sudah ada, tambah efek kilap sekali lewat -- */
.mk-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.13) 50%, transparent 70%);
  opacity: 0; transition: opacity .3s;
  pointer-events: none;
}
.mk-card:hover::after { opacity: 1; animation: sweep .6s var(--ease-out) forwards; }

/* -- Badge inisial berputar sedikit saat kartu hover -- */
.mk-card:hover .mk-card-badge {
  transform: rotate(-6deg) scale(1.08);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.mk-card-badge { transition: transform .2s ease; }

/* -- Tombol "Buka Presensi" di kartu -- */
.mk-card-open { transition: background-color .15s, transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s; }
.mk-card-open:hover { transform: scale(1.06); box-shadow: 0 4px 14px -4px rgba(0,0,0,.3); }
.mk-card-open:active { transform: scale(.95); }

/* -- Banner MK (kiri atas detail) -- */
.perk-mk-banner { animation: bannerReveal .5s .05s cubic-bezier(.2,.7,.2,1) both; }

/* -- Panel sesi & presensi masuk bertahap -- */
.perk-sesi-card { animation: fadeSlideLeft .45s .12s cubic-bezier(.2,.7,.2,1) both; }
.perk-presensi-card { animation: fadeSlideUp .45s .08s cubic-bezier(.2,.7,.2,1) both; }

/* -- Baris mahasiswa muncul berurutan -- */
.perk-mhs-row {
  animation: rowSlide .35s cubic-bezier(.2,.7,.2,1) both;
  animation-delay: calc(var(--row-i, 0) * 35ms);
}

/* -- Avatar berputar kecil saat hadir -- */
.perk-mhs-avatar--hadir {
  animation: scaleIn .4s cubic-bezier(.34,1.56,.64,1) both;
}

/* -- Tab: garis bawah bergerak halus -- */
.perk-tab {
  position: relative; overflow: hidden;
}
.perk-tab::after {
  content: ''; position: absolute; bottom: -1px; left: 50%; right: 50%;
  height: 2px; background: var(--ink);
  transition: left .28s cubic-bezier(.4,0,.2,1), right .28s cubic-bezier(.4,0,.2,1);
}
.perk-tab.active::after { left: 0; right: 0; }

/* Badge count bounce saat angka berubah */
.perk-tab-count.updated { animation: countBounce .4s cubic-bezier(.34,1.56,.64,1); }

/* -- Isi tab beranimasi saat switch -- */
.perk-list.tab-enter { animation: tabContent .32s cubic-bezier(.2,.7,.2,1) both; }

/* -- Skeleton loading sebelum data datang -- */
.perk-skeleton {
  height: 52px; border-radius: 8px; margin: 6px 20px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s linear infinite;
}

/* -- Pill status sesi: denyut lebih halus -- */
.pill-status.live {
  animation: livePulse 2.4s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,162,90,.0); }
  50%       { box-shadow: 0 0 0 5px rgba(34,162,90,.15); }
}

/* -- Tombol kembali -- */
.btn-back { transition: color .15s, transform .2s cubic-bezier(.34,1.56,.64,1); }
.btn-back:hover { transform: translateX(-4px); }
.btn-back .icon { transition: transform .2s cubic-bezier(.34,1.56,.64,1); }
.btn-back:hover .icon { transform: translateX(-3px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}


/* ==========================================================================
   Perkuliahan — layout detail split
   ========================================================================== */

.perk-view { width: 100%; }
.perk-view[hidden] { display: none; }

/* ---- Header daftar kartu ---- */
.mk-list-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  margin-bottom: 20px;
}
.mk-list-head .panel-title { margin-bottom: 2px; }
.mk-list-head .desc { margin: 0; }

/* ---- Tombol kembali ---- */
.btn-back {
  display: inline-flex; align-items: center; gap: 6px;
  border: 0; background: none; padding: 6px 0 14px;
  font-family: var(--font-serif); font-size: 13px; color: var(--muted); cursor: pointer;
}
.btn-back:hover { color: var(--ink); }
.btn-back .icon { width: 14px; height: 14px; }

/* ---- Grid detail: kiri + kanan ---- */
.perk-detail-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
  align-items: start;
}

/* ---- Banner MK (header biru besar) ---- */
.perk-mk-banner {
  position: relative; overflow: hidden;
  border-radius: 16px;
  background: var(--mk-color, #1e3a5f);
  color: #fff;
  padding: 22px 20px;
  margin-bottom: 14px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.perk-mk-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 150% 120% at 110% -10%, rgba(255,255,255,.14), transparent 55%);
  pointer-events: none;
}
.perk-mk-banner-body { position: relative; z-index: 1; flex: 1; min-width: 0; }
.perk-mk-label {
  font-family: var(--font-data); font-size: 10px; letter-spacing: 0.14em;
  opacity: .6; margin-bottom: 6px;
}
.perk-mk-title {
  font-family: var(--font-sans); font-weight: 700; font-size: 18px; line-height: 1.25;
  margin-bottom: 14px; word-break: break-word;
}
.perk-mk-kv { margin: 0; opacity: .85; }
.perk-mk-kv dt { color: rgba(255,255,255,.6); }
.perk-mk-kv dd { font-family: var(--font-data); }
.perk-mk-initials {
  position: relative; z-index: 1; flex: none;
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 10px;
  background: rgba(255,255,255,.18);
  font-family: var(--font-sans); font-weight: 700; font-size: 15px; letter-spacing: 0.04em;
}

/* ---- Panel sesi (kiri bawah) ---- */
.perk-sesi-card { padding: 18px 20px; }

/* ---- Panel presensi (kanan) ---- */
.perk-presensi-card { padding: 0; overflow: hidden; }
.perk-presensi-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 18px 20px 12px;
  border-bottom: 1px solid var(--line-soft);
}
.perk-presensi-meta { font-family: var(--font-data); font-size: 11px; }

/* ---- Tab hadir / belum ---- */
.perk-tabs {
  display: flex; border-bottom: 1px solid var(--line-soft);
  padding: 0 20px;
}
.perk-tab {
  display: inline-flex; align-items: center; gap: 7px;
  border: 0; background: none; padding: 10px 0; margin-right: 22px;
  font-family: var(--font-serif); font-size: 13px; color: var(--muted); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .15s, border-color .15s;
}
.perk-tab.active { color: var(--ink); border-bottom-color: var(--ink); }
.perk-tab-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 18px; padding: 0 5px; border-radius: 99px;
  background: #ebebeb; font-family: var(--font-data); font-size: 10.5px; color: var(--ink-2);
}
.perk-tab.active .perk-tab-count { background: var(--ink); color: #fff; }

/* ---- List mahasiswa ---- */
.perk-list {
  max-height: 460px; overflow-y: auto;
  padding: 8px 0;
}
.perk-list[hidden] { display: none; }

.perk-mhs-row {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 20px;
  border-bottom: 1px solid var(--line-soft);
  transition: background .15s;
}
.perk-mhs-row:last-child { border-bottom: 0; }
.perk-mhs-row:hover { background: #fafafa; }

.perk-mhs-avatar {
  flex: none;
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: #ddd; color: var(--ink-2);
  font-family: var(--font-sans); font-weight: 600; font-size: 14px;
}
.perk-mhs-avatar--hadir { background: var(--ok-bg); color: var(--ok-fg); }

.perk-mhs-info { flex: 1; min-width: 0; }
.perk-mhs-nama {
  font-family: var(--font-sans); font-size: 13px; font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.perk-mhs-nrp { font-family: var(--font-data); font-size: 10.5px; color: var(--muted); }

.perk-mhs-right { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.perk-mhs-waktu { font-family: var(--font-data); font-size: 10.5px; color: var(--muted); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .perk-detail-grid { grid-template-columns: 1fr; }
}
/* Kartu aktif & badge live rapi */
.mk-card--active {
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.75), 0 12px 32px -8px rgba(0, 0, 0, 0.35);
}

.mk-card-live-tag,
.mk-card-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 9px;
  margin-bottom: 8px;
  border-radius: 99px;
  background: rgba(16, 185, 129, 0.22);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #a7f3d0;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  width: fit-content;
  position: static;
  animation: liveBadgeFade .35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.mk-card-live-tag .live-dot,
.mk-card-live-badge .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.9);
  animation: liveDotPulse 1.8s ease-in-out infinite;
}

@keyframes liveBadgeFade {
  from { opacity: 0; transform: translateY(-4px) scale(0.95); }
  to { opacity: 1; transform: none; }
}

@keyframes liveDotPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 4px rgba(52, 211, 153, 0.8);
  }
  50% {
    transform: scale(1.3);
    opacity: 0.65;
    box-shadow: 0 0 10px rgba(52, 211, 153, 1);
  }
}

/* ==========================================================================
   Animasi Global Semua Tab (Dashboard, Mahasiswa, Perkuliahan, Riwayat, Pengaturan)
   ========================================================================== */

/* Staggered page entrance untuk isi tab apapun */
.enter {
  animation: pageEnter .45s cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: calc(var(--i, 0) * 65ms);
}
@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Row-in animation untuk baris tabel di semua tab */
.row-in {
  animation: rowSlideIn .32s cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: calc(var(--i, 0) * 22ms);
}
@keyframes rowSlideIn {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Badge animasi popping */
.badge {
  animation: badgePopIn .35s cubic-bezier(.34, 1.56, .64, 1) both;
}
@keyframes badgePopIn {
  from {
    opacity: 0;
    transform: scale(.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.badge.hadir {
  box-shadow: 0 0 0 1px rgba(23, 102, 59, 0.2);
}
.badge.terlambat {
  box-shadow: 0 0 0 1px rgba(124, 98, 8, 0.2);
}

/* RFID card detected pulsing alert banner (Tab Mahasiswa) */
.uid-fill {
  animation: beaconPulse 2.4s infinite ease-in-out, fadeSlideUp .3s ease-out;
}
@keyframes beaconPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(211, 182, 182, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(211, 182, 182, 0); }
}

/* Simulator tap response pop (Tab Pengaturan) */
.sim-pop {
  animation: simPopIn .36s cubic-bezier(.34, 1.56, .64, 1) both;
}
@keyframes simPopIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.95);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Calendar day button hover spring (Tab Riwayat Presensi) */
.cal-grid button {
  transition: transform .18s cubic-bezier(.34, 1.56, .64, 1), background-color .15s;
}
.cal-grid button:hover:not(.out) {
  transform: scale(1.18);
  z-index: 2;
}

/* Session strip active sway (Tab Dashboard) */
.session-strip:has(.pill-status.live) .s-icon {
  animation: bellSway 3s ease-in-out infinite;
}
@keyframes bellSway {
  0%, 100% { transform: rotate(0); }
  10% { transform: rotate(10deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(6deg); }
  40% { transform: rotate(0); }
}
