/* ========================================================
   ANDROMEDA - Stylesheet v2 "MatDash Edition"
   Desain: terinspirasi MatDash (AdminMart) — Manrope,
   primary #635BFF, kartu lembut tanpa border, bayangan halus.
   Semua nama kelas versi lama DIPERTAHANKAN.
   ======================================================== */

:root {
  --white: #ffffff;
  --soft:  #f0f5f9;                 /* body bg ala MatDash */
  --sky-50:  #ecebff;               /* tint primary 8-10% */
  --sky-100: #dedcff;
  --sky-200: #c3c0ff;
  --sky-300: #9d97ff;
  --sky-400: #7a72ff;
  --sky-500: #635BFF;               /* PRIMARY MatDash */
  --sky-600: #5249fe;               /* hover primary */
  --teal:    #16CDC7;               /* SECONDARY MatDash */
  --teal-50: #e2f9f8;
  --ink-900: #29343d;               /* heading MatDash */
  --ink-700: #3e4b59;
  --ink-500: #5a6a85;               /* body text muted */
  --ink-300: #98a4ae;               /* MatDash body color */
  --line:    #e8eef5;               /* border halus */
  --ok:      #36c76c;               /* success MatDash */
  --warn:    #f8c20a;               /* warning MatDash */
  --bad:     #ff6692;               /* danger MatDash */
  --info:    #46caeb;               /* info MatDash */
  --ok-bg:   #e6f8ed;
  --warn-bg: #fef7dc;
  --bad-bg:  #ffe9f0;
  --info-bg: #e4f7fc;
  --shadow-sm: 0 2px 6px rgba(37, 83, 185, .06);
  --shadow-md: 0 8px 24px rgba(37, 83, 185, .09);
  --shadow-lg: 0 24px 60px rgba(37, 83, 185, .12);
  --radius: 12px;                   /* radius khas MatDash */
  --radius-lg: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--soft);
  color: var(--ink-700);
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4, h5 {
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--ink-900);
}
h1 { font-size: 26px; }
h2 { font-size: 21px; }
h3 { font-size: 17px; }
h4 { font-size: 15px; }

a { color: var(--sky-500); text-decoration: none; }
a:hover { text-decoration: underline; }
small { color: var(--ink-500); }

/* ============== LOGIN ============== */
.login-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.login-art {
  background:
    radial-gradient(circle at 20% 30%, var(--sky-100), transparent 50%),
    radial-gradient(circle at 80% 70%, var(--teal-50), transparent 55%),
    linear-gradient(160deg, #ffffff 0%, var(--soft) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
}
.login-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--sky-200) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.3;
  mask-image: radial-gradient(ellipse at center, black, transparent 70%);
}
.login-art::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  border: 1.5px dashed var(--sky-300);
  border-radius: 50%;
  bottom: -100px;
  right: -100px;
  opacity: 0.45;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1;
  position: relative;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--sky-500);
  position: relative;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px rgba(99, 91, 255, .35);
}
.brand-mark::after {
  content: "";
  width: 22px;
  height: 22px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  border-right-color: transparent;
}
.brand-mark::before {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
  top: 9px;
  right: 9px;
}
.brand-name {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}
.brand-tag {
  font-size: 12px;
  color: var(--ink-500);
  margin-top: 2px;
}
.login-hero { z-index: 1; position: relative; }
.login-hero h1 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 16px;
}
.login-hero p {
  color: var(--ink-500);
  max-width: 420px;
  margin: 0;
  font-size: 15px;
}
.login-foot {
  z-index: 1;
  position: relative;
  font-size: 12px;
  color: var(--ink-500);
  display: flex;
  gap: 16px;
}

.login-form-wrap {
  background: var(--white);
  display: grid;
  place-items: center;
  padding: 40px;
}
.login-form { width: 100%; max-width: 380px; }
.login-form h2 { font-size: 25px; font-weight: 800; margin-bottom: 4px; }
.login-form .sub { color: var(--ink-500); margin-bottom: 28px; }

/* ============== FORM ============== */
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--ink-700);
}
.field .req { color: var(--bad); }
.input, .select, .textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
  color: var(--ink-900);
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--sky-500);
  box-shadow: 0 0 0 3px rgba(99, 91, 255, .14);
}
.textarea { resize: vertical; min-height: 90px; }
.input-grp { position: relative; }
.input-grp .input { padding-left: 42px; }
.input-grp .ic {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-300);
}
.help { font-size: 12px; color: var(--ink-500); margin-top: 4px; }

/* ============== BUTTONS ============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s;
  font-family: inherit;
  line-height: 1.4;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--sky-500);
  color: #fff;
  box-shadow: 0 4px 12px rgba(99, 91, 255, .28);
}
.btn-primary:hover { background: var(--sky-600); box-shadow: 0 6px 16px rgba(99, 91, 255, .36); }
.btn-sky {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 4px 12px rgba(22, 205, 199, .28);
}
.btn-sky:hover { background: #12b4ae; }
.btn-outline {
  background: var(--white);
  border-color: var(--line);
  color: var(--ink-700);
}
.btn-outline:hover { border-color: var(--sky-300); color: var(--sky-500); background: var(--sky-50); }
.btn-ghost {
  background: transparent;
  color: var(--ink-700);
}
.btn-ghost:hover { background: var(--sky-50); color: var(--sky-500); }
.btn-danger { background: var(--bad); color: #fff; border-color: var(--bad); box-shadow: 0 4px 12px rgba(255, 102, 146, .28); }
.btn-danger:hover { background: #f04b7d; }
.btn-success { background: var(--ok); color: #fff; border-color: var(--ok); box-shadow: 0 4px 12px rgba(54, 199, 108, .28); }
.btn-success:hover { background: #2cb55f; }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 12.5px; border-radius: 7px; }
.btn-lg { padding: 13px 22px; font-size: 15px; border-radius: 10px; }

/* ============== APP LAYOUT ============== */
.app {
  display: grid;
  grid-template-columns: 256px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--white);
  border-right: 1px solid var(--line);
  padding: 24px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar .brand { margin-bottom: 28px; padding: 0 8px; }
.sidebar .brand-name { font-size: 19px; }

.menu-section {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-300);
  padding: 14px 12px 6px;
}

.menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 9px;
  color: var(--ink-500);
  font-weight: 600;
  font-size: 13.5px;
  margin-bottom: 2px;
  transition: background .15s, color .15s;
}
.menu a:hover {
  background: var(--sky-50);
  color: var(--sky-500);
  text-decoration: none;
}
.menu a.is-active {
  background: var(--sky-500);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(99, 91, 255, .3);
}
.menu a.is-active:hover { background: var(--sky-500); color: var(--white); }
.menu a .ic { width: 18px; text-align: center; opacity: .9; }

.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 13px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar .crumb { font-size: 12.5px; color: var(--ink-300); }
.topbar .crumb b { color: var(--ink-900); font-weight: 700; }
.topbar .right { display: flex; align-items: center; gap: 14px; }
.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: var(--sky-50);
}
.user-chip .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sky-500);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}
.user-chip .name { font-size: 13px; font-weight: 700; color: var(--ink-900); }
.user-chip .role { font-size: 11px; color: var(--ink-500); }

.content { padding: 28px; flex: 1; }

/* ============== CARDS / PANELS ============== */
.card {
  background: var(--white);
  border: 0;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.card-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 8px;
}
.card-hd h3 { margin: 0; font-weight: 700; }

/* ============== TABLE ============== */
.table-wrap {
  background: var(--white);
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.table-toolbar {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.table-toolbar .search { position: relative; min-width: 240px; }
.table-toolbar .search input {
  padding: 8px 14px 8px 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  width: 100%;
}
.table-toolbar .search::before {
  content: "🔍";
  position: absolute;
  left: 12px;
  top: 7px;
  font-size: 13px;
  color: var(--ink-300);
}

table.table { width: 100%; border-collapse: collapse; }
table.table th, table.table td {
  padding: 13px 16px;
  text-align: left;
  font-size: 13.5px;
  border-bottom: 1px solid var(--line);
}
table.table th {
  background: var(--white);
  font-weight: 700;
  font-size: 11.5px;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1.5px solid var(--line);
}
table.table td { color: var(--ink-700); }
table.table td b { color: var(--ink-900); }
table.table tbody tr { transition: background .12s; }
table.table tbody tr:hover { background: #f8fafd; }
table.table tbody tr:last-child td { border-bottom: 0; }
table.table .actions { display: flex; gap: 4px; }

.empty { padding: 60px 20px; text-align: center; color: var(--ink-500); }
.empty .icon { font-size: 48px; margin-bottom: 12px; opacity: 0.4; }

/* Pagination (dalam table-wrap) */
.pagination {
  display: flex;
  gap: 4px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  align-items: center;
  justify-content: space-between;
}
.pagination .info { font-size: 12px; color: var(--ink-500); }
.pagination .pages { display: flex; gap: 4px; }
.pagination a, .pagination span {
  padding: 6px 11px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-700);
}
.pagination a:hover { background: var(--sky-50); border-color: var(--sky-200); text-decoration: none; }
.pagination .current { background: var(--sky-500); color: var(--white); border-color: var(--sky-500); }

/* ============== BADGES ============== */
.badge {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.badge-success { background: var(--ok-bg); color: #1d9e50; }
.badge-warning { background: var(--warn-bg); color: #b3890a; }
.badge-danger  { background: var(--bad-bg); color: #e23670; }
.badge-info    { background: var(--info-bg); color: #1d9ec4; }
.badge-muted   { background: #eef2f6; color: #64748b; }

/* ============== ALERT ============== */
.alert {
  padding: 13px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  box-shadow: var(--shadow-sm);
}
.alert .ic {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  flex-shrink: 0;
}
.alert-success { background: var(--ok-bg); color: #157a3e; }
.alert-success .ic { background: var(--ok); color: white; }
.alert-error { background: var(--bad-bg); color: #d61f5c; }
.alert-error .ic { background: var(--bad); color: white; }
.alert-info { background: var(--info-bg); color: #1480a1; }
.alert-warning { background: var(--warn-bg); color: #94700a; }

/* ============== MODAL ============== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(41, 52, 61, .45);
  backdrop-filter: blur(4px);
  display: none;
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.is-open { display: flex; }
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal-hd {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-hd h3 { margin: 0; }
.modal-bd { padding: 20px 24px; }
.modal-ft {
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--ink-500);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.modal-close:hover { background: var(--soft); }

/* ============== UTILITY ============== */
.row { display: flex; gap: 16px; flex-wrap: wrap; }
.col { flex: 1; min-width: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.text-muted { color: var(--ink-500); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-2 { gap: 8px; } .gap-3 { gap: 16px; }

/* Mobile sidebar */
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    left: -270px;
    width: 256px;
    transition: left .25s;
    z-index: 100;
    box-shadow: var(--shadow-lg);
  }
  .sidebar.is-open { left: 0; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-art { display: none; }
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--ink-700);
}
@media (max-width: 900px) {
  .menu-toggle { display: block; }
}

/* ===========================================================
   Komponen lanjutan (Stat, Info Card, Quick, List, Report,
   Student Card, Empty State, Filter, Form Card, dll)
   =========================================================== */

/* Page head */
.page-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 16px; margin-bottom: 22px; flex-wrap: wrap;
}
.page-head h1 {
  font-family: 'Manrope', sans-serif; font-size: 24px; font-weight: 800;
  color: var(--ink-900); margin: 0 0 4px; letter-spacing: -.02em;
}
.page-head p { color: var(--ink-500); margin: 0; font-size: 14px; }
.page-head .actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Card Info (profil box) */
.card-info {
  background: linear-gradient(135deg, var(--sky-50) 0%, #ffffff 65%);
  border: 0; border-radius: var(--radius-lg);
  padding: 24px; margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.card-info-hd { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.card-info-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-500); font-weight: 700; margin-bottom: 4px; }
.card-info-title { font-family: 'Manrope', sans-serif; font-size: 21px; font-weight: 800; color: var(--ink-900); margin: 0; }
.card-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.card-info-item {}
.card-info-lbl { font-size: 12px; color: var(--ink-500); margin-bottom: 4px; }
.card-info-val { font-size: 14px; font-weight: 700; color: var(--ink-900); }

/* Stat Grid */
.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px; margin-bottom: 24px;
}
.stat-card {
  background: #fff; border: 0; border-radius: var(--radius);
  padding: 20px; display: flex; align-items: center; gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-ic {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.stat-lbl { font-size: 12px; color: var(--ink-500); margin-bottom: 2px; font-weight: 600; }
.stat-val { font-size: 24px; font-weight: 800; color: var(--ink-900); line-height: 1.1; font-family: 'Manrope', sans-serif; }
.stat-sub { font-size: 11px; color: var(--ink-500); margin-top: 2px; }

/* Stat lama (dashboard versi awal) */
.stat {
  background: var(--white);
  border: 0;
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.stat::before {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  background: var(--sky-50);
  border-radius: 50%;
  right: -30px;
  top: -30px;
}
.stat .lbl {
  font-size: 12px;
  color: var(--ink-500);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
}
.stat .val {
  font-family: 'Manrope', sans-serif;
  font-size: 34px;
  font-weight: 800;
  color: var(--ink-900);
  line-height: 1.1;
  margin-top: 6px;
  position: relative;
}
.stat .sub { font-size: 12px; color: var(--ink-500); margin-top: 8px; position: relative; }
.stat .sub b.up { color: var(--ok); }
.stat .sub b.down { color: var(--bad); }
.stat.is-primary { background: var(--sky-500); color: var(--white); box-shadow: 0 8px 20px rgba(99,91,255,.35); }
.stat.is-primary .lbl,
.stat.is-primary .sub { color: rgba(255,255,255,.75); }
.stat.is-primary .val { color: var(--white); }
.stat.is-primary::before { background: rgba(255,255,255,.08); }

/* Quick Action Row */
.quick-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px; margin-bottom: 24px;
}
.quick-btn {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; background: #fff; border: 0;
  border-radius: var(--radius); text-decoration: none; color: var(--ink-900);
  box-shadow: var(--shadow-sm);
  transition: all .15s;
}
.quick-btn:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }
.quick-warn { background: var(--warn-bg); }
.quick-warn:hover { background: #fdf0c5; }
.quick-ic { font-size: 24px; }
.quick-ttl { font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.quick-sub { font-size: 12px; color: var(--ink-500); }

/* Section */
.section { margin-bottom: 28px; }
.section-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.section-hd h2 { font-family: 'Manrope', sans-serif; font-size: 17px; font-weight: 800; color: var(--ink-900); margin: 0; }
.link { color: var(--sky-500); font-size: 13px; text-decoration: none; font-weight: 600; }
.link:hover { text-decoration: underline; }

/* List Card */
.list-card {
  background: #fff; border: 0; border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.list-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid var(--line); gap: 12px;
}
.list-item:last-child { border-bottom: none; }
.list-item-l { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.list-ttl { font-weight: 700; font-size: 14px; color: var(--ink-900); margin-bottom: 2px; }
.list-sub { font-size: 12px; color: var(--ink-500); }

/* Avatar (initial circle) */
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--sky-50); color: var(--sky-500);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; flex-shrink: 0;
}

/* Dot Date (mini calendar) */
.dot-date {
  width: 44px; flex-shrink: 0; text-align: center;
  background: var(--sky-50); border-radius: 10px; padding: 6px 4px;
  border: 0;
}
.d-day { font-family: 'Manrope', sans-serif; font-size: 18px; font-weight: 800; color: var(--sky-500); line-height: 1; }
.d-mo { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-500); margin-top: 2px; font-weight: 700; }

/* Empty State */
.empty-state {
  text-align: center; padding: 44px 20px;
  background: #fff; border: 1px dashed var(--line); border-radius: var(--radius);
}
.empty-ic { font-size: 40px; margin-bottom: 12px; opacity: .5; }
.empty-state h3 { font-family: 'Manrope', sans-serif; font-size: 17px; font-weight: 700; margin: 0 0 6px; color: var(--ink-900); }
.empty-state p { color: var(--ink-500); font-size: 14px; margin: 0 0 16px; }

/* Filter Bar */
.filter-bar {
  display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap;
}
.filter-bar .field { margin-bottom: 0; }

/* Form Card */
.form-card {
  background: #fff; border: 0; border-radius: var(--radius);
  padding: 24px; margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.form-ft {
  display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px;
  padding-top: 16px; border-top: 1px solid var(--line);
}

/* Grid layouts */
.grid-2-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .grid-2-cols { grid-template-columns: 1fr; } }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }

/* Info Grid (read-only) */
.info-grid { display: flex; flex-direction: column; }
.info-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.info-row:last-child { border-bottom: none; }
.info-l { color: var(--ink-500); }
.info-v { color: var(--ink-900); font-weight: 700; text-align: right; }

/* Report Card (review laporan) */
.report-list { display: flex; flex-direction: column; gap: 16px; }
.report-card {
  background: #fff; border: 0; border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.report-hd {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px; background: #f8fafd; border-bottom: 1px solid var(--line);
  gap: 12px;
}
.report-meta { display: flex; align-items: center; gap: 12px; }
.report-stu { font-weight: 700; color: var(--ink-900); font-size: 14px; }
.report-sub { font-size: 12px; color: var(--ink-500); margin-top: 2px; }
.report-bd { padding: 18px 20px; }
.report-ttl { font-family: 'Manrope', sans-serif; font-size: 17px; font-weight: 700; color: var(--ink-900); margin: 0 0 8px; }
.report-time { font-size: 12px; color: var(--ink-500); margin-bottom: 12px; }
.report-section { margin-top: 12px; }
.report-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-500); font-weight: 700; margin-bottom: 4px; }
.report-txt { color: var(--ink-700); font-size: 14px; line-height: 1.6; }
.report-ft { padding: 16px 20px; border-top: 1px solid var(--line); background: #fafdff; }
.review-form .field { margin-bottom: 10px; }
.review-form .actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Student Card */
.stu-card {
  background: #fff; border: 0; border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: all .15s;
}
.stu-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stu-hd { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.stu-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--sky-100); }
.stu-avatar-init { background: var(--sky-50); color: var(--sky-500); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; font-family: 'Manrope', sans-serif; }
.stu-name { font-family: 'Manrope', sans-serif; font-size: 16px; font-weight: 700; color: var(--ink-900); margin: 0 0 4px; }
.stu-sub { font-size: 12px; color: var(--ink-500); margin-bottom: 12px; }
.stu-info { display: flex; flex-direction: column; gap: 4px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stu-info-row { display: flex; justify-content: space-between; font-size: 12px; padding: 2px 0; }
.stu-info-row span { color: var(--ink-500); }
.stu-info-row b { color: var(--ink-900); }
.stu-stats { display: flex; gap: 16px; margin-top: 12px; }
.stu-stat { flex: 1; text-align: center; padding: 8px 6px; background: var(--soft); border-radius: 8px; }
.stu-stat-v { font-family: 'Manrope', sans-serif; font-size: 20px; font-weight: 800; color: var(--ink-900); line-height: 1.1; }
.stu-stat-l { font-size: 10px; color: var(--ink-500); text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; font-weight: 700; }

/* Chip */
.chip { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.chip-sky { background: var(--sky-50); color: var(--sky-500); border: 0; }

/* Badge variants */
.badge-ok { background: var(--ok-bg); color: #1d9e50; }
.badge-warn { background: var(--warn-bg); color: #b3890a; }

/* Button extras */
.btn-ok { background: var(--ok); color: #fff; border: 1px solid var(--ok); box-shadow: 0 4px 12px rgba(54,199,108,.25); }
.btn-ok:hover { background: #2cb55f; }
.btn-warn { background: #ffae1f; color: #fff; border: 1px solid #ffae1f; box-shadow: 0 4px 12px rgba(255,174,31,.25); }
.btn-warn:hover { background: #f09e0d; }

/* Alert (varian lama) */
.alert-warn { background: var(--warn-bg); color: #94700a; border: 0; }
.alert-danger { background: var(--bad-bg); color: #d61f5c; border: 0; }

/* Checkbox inline */
.checkbox-inline { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; color: var(--ink-700); }
.checkbox-inline input { width: auto; }

/* Text utils */
.text-sm { font-size: 12px; }
.text-warn { color: #d97706; }
.text-ok { color: #1d9e50; }

/* Pagination (di luar table-wrap) */
.pagination { display: flex; gap: 4px; margin-top: 20px; justify-content: center; }
.pagination a {
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px;
  color: var(--ink-700); text-decoration: none; font-size: 13px; min-width: 36px; text-align: center;
  background: #fff;
}
.pagination a:hover { background: var(--sky-50); border-color: var(--sky-200); }
.pagination a.active { background: var(--sky-500); color: #fff; border-color: var(--sky-500); }

/* Bulk action bar */
.bulk-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 16px; margin-bottom: 12px;
  background: var(--sky-50); border: 0;
  border-radius: var(--radius); font-size: 14px;
  box-shadow: var(--shadow-sm);
}
.bulk-bar b { color: var(--sky-500); font-size: 15px; }

/* Modal large variant */
.modal.modal-lg { max-width: 720px; }

/* Pagination dots */
.pagination .pg-dots { padding: 6px 4px; color: var(--ink-500); font-size: 13px; }

/* Select small */
.select.select-sm { padding: 4px 8px; font-size: 12px; min-width: auto; width: auto; }

/* Notif bell di topbar */
.notif-bell {
  position: relative;
  background: var(--sky-50); border: 0;
  padding: 7px 11px; border-radius: 999px;
  font-size: 14px; cursor: default;
  display: flex; align-items: center; gap: 4px;
}
.notif-badge {
  background: var(--bad); color: #fff;
  font-size: 10px; font-weight: 800;
  padding: 1px 6px; border-radius: 999px;
  min-width: 18px; text-align: center;
}

/* Checkbox di tabel */
.table input[type="checkbox"] {
  width: 16px; height: 16px;
  cursor: pointer; accent-color: var(--sky-500);
}

/* Form sub-heading */
.form-card h4 {
  font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 700;
  color: var(--ink-900); margin: 14px 0 12px;
}

/* Datalist arrow */
input[list] { background-image: linear-gradient(45deg, transparent 50%, var(--ink-500) 50%), linear-gradient(135deg, var(--ink-500) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 28px; }

/* Total info bar */
.filter-bar + .filter-bar { margin-top: -4px; padding-top: 4px; }

/* ==== Notifikasi ==== */
.notif-tabs { display:flex; gap:4px; margin-bottom:16px; border-bottom:2px solid var(--line); }
.notif-tab { padding:8px 16px; font-size:13px; font-weight:700; color:var(--ink-500); text-decoration:none; border-bottom:2px solid transparent; margin-bottom:-2px; display:flex; align-items:center; gap:6px; }
.notif-tab:hover { color:var(--ink-900); }
.notif-tab.active { color:var(--sky-500); border-bottom-color:var(--sky-500); }
.notif-badge-tab { background:var(--sky-500); color:#fff; font-size:10px; font-weight:800; padding:1px 6px; border-radius:999px; }
.notif-list { display:flex; flex-direction:column; gap:8px; }
.notif-item { display:flex; align-items:flex-start; gap:14px; background:#fff; border:0; border-radius:var(--radius); padding:14px 16px; box-shadow:var(--shadow-sm); transition:all .15s; }
.notif-item.notif-unread { background:var(--sky-50); }
.notif-ic { width:38px; height:38px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:16px; font-weight:700; flex-shrink:0; }
.notif-body { flex:1; min-width:0; }
.notif-judul { font-weight:700; font-size:14px; color:var(--ink-900); margin-bottom:3px; }
.notif-pesan { font-size:13px; color:var(--ink-500); margin-bottom:4px; }
.notif-time { font-size:11px; color:var(--ink-300); }
.notif-actions { display:flex; flex-direction:column; gap:4px; flex-shrink:0; }
.notif-bell { cursor:pointer; text-decoration:none; }

/* ==== Rekap Absensi ==== */
.persen-bar { height:8px; background:#eef2f6; border-radius:999px; overflow:hidden; }
.persen-fill { height:100%; border-radius:999px; transition:width .3s; }

/* Kalender Visual */
.kalender-legend { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:16px; }
.kal-leg { display:inline-flex; align-items:center; gap:4px; padding:4px 10px; border-radius:6px; border:1px solid; font-size:12px; font-weight:600; }
.kalender-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:4px; }
.kal-header { text-align:center; font-size:11px; font-weight:800; color:var(--ink-500); padding:6px 0; text-transform:uppercase; letter-spacing:.04em; }
.kal-cell { border-radius:8px; border:1px solid var(--line); padding:6px; min-height:56px; display:flex; flex-direction:column; align-items:center; justify-content:center; position:relative; cursor:default; transition:transform .1s; background:#fff; }
.kal-cell:hover { transform:scale(1.05); z-index:1; }
.kal-today { box-shadow:0 0 0 2px var(--sky-500) !important; }
.kal-day { font-size:13px; font-weight:800; color:var(--ink-900); line-height:1; }
.kal-icon { font-size:14px; margin-top:4px; }
.kal-empty,.kal-weekend,.kal-outside { opacity:.4; }
.kal-future { opacity:.6; }
@media (max-width:640px) {
  .kalender-grid { gap:2px; }
  .kal-cell { min-height:42px; padding:4px; }
  .kal-day { font-size:11px; }
  .kal-icon { font-size:11px; margin-top:2px; }
}


/* ===== Logo sekolah dari menu Pengaturan ===== */
.brand-logo {
  width: 44px; height: 44px; border-radius: 12px; object-fit: contain; flex: none;
  background: #fff; box-shadow: 0 6px 14px rgba(15, 23, 42, .10);
}
.login-art .brand-logo { width: 52px; height: 52px; }
.login-mobile-logo { display: none; }
@media (max-width: 900px) {
  .login-mobile-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-weight: 700; color: var(--ink-700, #334155); }
  .login-mobile-logo .brand-logo { width: 56px; height: 56px; }
}
.sidebar .brand-tag { max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
