/* ═══════════════════════════════════════════════════════════════════════════
   static/css/style.css — Design System Dashboard Dapodik Jawa Timur
   ═══════════════════════════════════════════════════════════════════════════ */

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

/* ─── CSS Variables (Design Tokens) ───────────────────────────────────────── */
:root {
  /* Warna Utama Jawa Timur */
  --primary:          #1a4fa0;
  --primary-dark:     #0d2b6b;
  --primary-light:    #2563c9;
  --secondary:        #c0392b;
  --accent:           #f39c12;
  --accent-light:     #f8c74c;

  /* Background */
  --bg:               #f0f4f8;
  --bg-card:          #ffffff;
  --sidebar-bg:       #0d2b6b;
  --sidebar-active:   #1a4fa0;
  --sidebar-hover:    rgba(255,255,255,0.08);
  --sidebar-text:     rgba(255,255,255,0.85);
  --header-bg:        #ffffff;

  /* Text */
  --text-primary:     #1e293b;
  --text-secondary:   #64748b;
  --text-muted:       #94a3b8;
  --text-white:       #ffffff;

  /* Border & Shadow */
  --border:           #e2e8f0;
  --border-focus:     #2563c9;
  --shadow-sm:        0 1px 3px rgba(0,0,0,.08);
  --shadow-md:        0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:        0 8px 32px rgba(0,0,0,.14);

  /* Chart Colors */
  --chart-sma:        #2563c9;
  --chart-smk:        #16a34a;
  --chart-slb:        #ea580c;

  /* Layout */
  --sidebar-w:        260px;
  --header-h:         64px;
  --radius:           12px;
  --radius-sm:        8px;

  /* Transitions */
  --transition:       .2s ease;
}

/* ─── Reset & Base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 15px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }

/* ─── Scrollbar ──────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════════════════════════════ */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0; top: 0; bottom: 0;
  z-index: 100;
  transition: transform var(--transition);
  overflow-y: auto;
}

.sidebar-brand {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: contain;
  background: white;
  padding: 4px;
  flex-shrink: 0;
}

.sidebar-brand-text {
  flex: 1;
}

.sidebar-brand-title {
  font-weight: 700;
  font-size: .95rem;
  color: var(--text-white);
  line-height: 1.2;
}

.sidebar-brand-sub {
  font-size: .72rem;
  color: rgba(255,255,255,.55);
  margin-top: 2px;
}

.sidebar-section {
  padding: 16px 12px 8px;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
}

.sidebar-nav {
  padding: 4px 12px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--sidebar-text);
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  position: relative;
  margin-bottom: 2px;
}

.nav-item:hover {
  background: var(--sidebar-hover);
  color: #fff;
}

.nav-item.active {
  background: var(--sidebar-active);
  color: #fff;
  font-weight: 600;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 60%;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}

.nav-item svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  opacity: .85;
}

.nav-item.active svg { opacity: 1; }

/* Sidebar footer */
.sidebar-footer {
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: auto;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.06);
}

.sidebar-user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .875rem; color: #fff;
  flex-shrink: 0;
}

.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name {
  font-size: .825rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  font-size: .7rem;
  color: rgba(255,255,255,.5);
  text-transform: capitalize;
}

.sidebar-logout {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  color: rgba(255,255,255,.5);
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}

.sidebar-logout:hover { background: var(--secondary); color: #fff; }
.sidebar-logout svg { width: 16px; height: 16px; }

/* ═══════════════════════════════════════════════════════════════════════════
   MAIN LAYOUT
   ═══════════════════════════════════════════════════════════════════════════ */
.layout-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ─── Header ──────────────────────────────────────────────────────────────── */
.header {
  height: var(--header-h);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow-sm);
}

.header-left { display: flex; align-items: center; gap: 16px; }

.header-hamburger {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 8px; border-radius: 8px;
  color: var(--text-secondary);
  transition: background var(--transition);
}
.header-hamburger:hover { background: var(--bg); }
.header-hamburger svg { width: 20px; height: 20px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .825rem;
  color: var(--text-secondary);
}

.breadcrumb-sep { opacity: .4; }

.breadcrumb-current {
  color: var(--text-primary);
  font-weight: 600;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg);
  border-radius: 20px;
  font-size: .8rem;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.header-badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

/* ─── Content Area ───────────────────────────────────────────────────────── */
.content {
  flex: 1;
  padding: 28px;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.page-subtitle {
  font-size: .875rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════════════════════════ */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-header {
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-title {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title svg { width: 18px; height: 18px; color: var(--primary); }

.card-body { padding: 20px 22px; }

/* ─── Stats Cards ────────────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--card-accent, var(--primary));
}

.stat-card.sma { --card-accent: var(--chart-sma); }
.stat-card.smk { --card-accent: var(--chart-smk); }
.stat-card.slb { --card-accent: var(--chart-slb); }
.stat-card.siswa { --card-accent: #7c3aed; }
.stat-card.guru  { --card-accent: #0891b2; }
.stat-card.rombel { --card-accent: var(--accent); }

.stat-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: var(--card-accent, var(--primary));
  background: linear-gradient(135deg, var(--card-accent, var(--primary)), color-mix(in srgb, var(--card-accent, var(--primary)) 60%, white));
}

.stat-icon svg { width: 26px; height: 26px; color: #fff; }

.stat-info { flex: 1; min-width: 0; }

.stat-value {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: .8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ─── Chart Grid ─────────────────────────────────────────────────────────── */
.chart-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.chart-wrap {
  position: relative;
  height: 300px;
}

.chart-wrap canvas { width: 100% !important; }

/* ─── Standard Card Table & Horizontal Scroll (Standar Siswa By Name) ─── */
.card-table, .dataTables_card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  margin-bottom: 24px;
  padding: 0;
}

.card-table-header, .dataTables_card_header, .dataTables_card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.card-table-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.table-wrap {
  padding: 16px 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-wrap::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

.table-wrap::-webkit-scrollbar-track {
  background: #f8fafc;
  border-radius: 4px;
}

.table-wrap::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.table-wrap::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: .875rem;
}

thead th {
  background: #f8fafc;
  padding: 12px 14px;
  text-align: left;
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 2px solid #cbd5e1;
  border-left: none;
  border-right: none;
  white-space: nowrap;
}

tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  border-top: none;
  border-left: none;
  border-right: none;
  color: var(--text-primary);
  vertical-align: middle;
}

tbody tr:hover td { background: #f8fafc; }
tbody tr:last-child td { border-bottom: 1px solid var(--border); }

.td-link {
  color: var(--primary);
  font-weight: 600;
  transition: color var(--transition);
}
.td-link:hover { color: var(--primary-light); text-decoration: underline; }

/* ─── Badge ──────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.badge-sma   { background: #dbeafe; color: #1d4ed8; }
.badge-smk   { background: #dcfce7; color: #15803d; }
.badge-slb   { background: #ffedd5; color: #c2410c; }
.badge-negeri { background: #f0fdf4; color: #166534; }
.badge-swasta { background: #fef9c3; color: #854d0e; }
.badge-active { background: #dcfce7; color: #166534; }
.badge-inactive { background: #fee2e2; color: #991b1b; }
.badge-admin  { background: #ede9fe; color: #5b21b6; }
.badge-role   { background: #e0f2fe; color: #0369a1; }

/* ─── Pagination ─────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 16px 22px;
  border-top: 1px solid var(--border);
  justify-content: space-between;
}

.pagination-info {
  font-size: .8rem;
  color: var(--text-secondary);
}

.pagination-buttons { display: flex; gap: 4px; }

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 500;
  background: white;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ─── Filters ────────────────────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.filter-select, .filter-input {
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .85rem;
  background: white;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition);
  min-width: 160px;
}

.filter-select:focus, .filter-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(37,99,201,.1);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn svg { width: 16px; height: 16px; }

.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover { background: var(--primary-light); box-shadow: 0 2px 8px rgba(26,79,160,.3); }

.btn-secondary {
  background: var(--bg);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--border); }

.btn-danger { background: var(--secondary); color: white; }
.btn-danger:hover { background: #a93226; }

.btn-success { background: #16a34a; color: white; }
.btn-success:hover { background: #15803d; }

.btn-sm { padding: 5px 10px; font-size: .78rem; }

/* ─── Form ────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .875rem;
  background: white;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(37,99,201,.1);
}

/* ─── Alert ──────────────────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-warning { background: #fef9c3; color: #854d0e; border: 1px solid #fef08a; }
.alert-info { background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe; }

/* ─── Modal ──────────────────────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(3px);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.modal-overlay.open { display: flex; }

.modal {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modal-in .2s ease;
}

@keyframes modal-in {
  from { transform: scale(.95) translateY(-10px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title { font-size: 1rem; font-weight: 700; }

.modal-close {
  background: none; border: none; cursor: pointer;
  padding: 6px; border-radius: 6px; color: var(--text-secondary);
  transition: background var(--transition);
}
.modal-close:hover { background: var(--bg); }
.modal-close svg { width: 18px; height: 18px; }

.modal-body { padding: 20px 22px; }

.modal-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ─── Empty State ────────────────────────────────────────────────────────── */
.empty-state {
  padding: 60px 24px;
  text-align: center;
  color: var(--text-muted);
}

.empty-state svg {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  opacity: .4;
}

.empty-state p { font-size: .9rem; }

/* ─── Skeleton Loader ────────────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 6px;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .chart-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .layout-main {
    margin-left: 0;
  }

  .header-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .content { padding: 16px; }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stat-value { font-size: 1.35rem; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-group { width: 100%; }
  .filter-select, .filter-input { width: 100%; }
}

/* ─── Login Page ─────────────────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  width: 100vw;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 70%, rgba(243,156,18,.15) 0%, transparent 60%),
              radial-gradient(circle at 70% 20%, rgba(192,57,43,.1) 0%, transparent 50%);
  animation: bg-float 8s ease-in-out infinite alternate;
}

@keyframes bg-float {
  from { transform: translate(0, 0) rotate(0deg); }
  to   { transform: translate(2%, 3%) rotate(1deg); }
}

.login-card {
  background: white;
  border-radius: 20px;
  padding: 44px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 64px rgba(0,0,0,.25);
  position: relative;
  z-index: 1;
  animation: card-in .5s ease;
}

@media (max-width: 480px) {
  .login-card {
    padding: 32px 24px;
  }
}

@keyframes card-in {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.login-logo {
  text-align: center;
  margin-bottom: 28px;
}

.login-logo img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto 12px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.15));
}

.login-logo h1 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.2;
}

.login-logo p {
  font-size: .8rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.login-input-wrap {
  position: relative;
  margin-bottom: 14px;
}

.login-input-icon {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 18px; height: 18px;
}

.login-input {
  width: 100%;
  padding: 11px 12px 11px 40px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: .9rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: #f8fafc;
}

.login-input:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(26,79,160,.12);
}

.login-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border: none;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 6px;
  transition: all var(--transition);
  box-shadow: 0 4px 12px rgba(26,79,160,.35);
}

.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26,79,160,.45);
}

.login-btn:active { transform: translateY(0); }

/* ─── Number animation ───────────────────────────────────────────────────── */
.count-up { display: inline-block; }

/* ─── Progress bar ───────────────────────────────────────────────────────── */
.progress-bar {
  height: 8px;
  background: var(--bg);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 8px;
}

.progress-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transition: width .8s ease;
}

/* ─── Top table shortcut ─────────────────────────────────────────────────── */
.rank-num {
  font-weight: 700;
  color: var(--text-muted);
  font-size: .8rem;
}

.rank-num.top-3 { color: var(--accent); }

/* ─── Proteksi Data Sementara ────────────────────────────────────────────── */
.no-copy {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   KOTAK FILTER STANDAR (STANDAR SISWA BY NAME)
   ═══════════════════════════════════════════════════════════════════════════ */
.card-filter {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  overflow: hidden;
}

.card-filter-header {
  padding: 14px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #334155;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
}

.filters {
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 16px;
  align-items: flex-end;
}

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

.filter-group label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-control {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 0.85rem;
  color: #1e293b;
  background-color: #ffffff;
  outline: none;
  height: 38px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.filter-control:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.filter-actions {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: flex-end;
  flex: 0 0 auto;
}

.btn-apply {
  height: 38px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-apply:hover {
  background: #1d4ed8;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.btn-reset {
  height: 38px;
  padding: 0 16px;
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-reset:hover {
  background-color: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

