
:root {
  --blue-50: #eff8ff;
  --blue-100: #dbeffe;
  --blue-200: #bfe3fd;
  --blue-300: #93d0fa;
  --blue-400: #60b4f6;
  --blue-500: #3b95f0;
  --blue-600: #2577e4;
  --blue-700: #1d62d1;
  --yellow-50: #fffdf0;
  --yellow-100: #fef9c3;
  --yellow-200: #fef08a;
  --yellow-300: #fde047;
  --yellow-400: #facc15;
  --yellow-pastel: #fff8d6;
  --yellow-soft: #fef3c7;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --green-100: #dcfce7;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --red-100: #fee2e2;
  --red-500: #ef4444;
  --orange-100: #ffedd5;
  --orange-500: #f97316;
  --sidebar-w: 260px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(59,149,240,0.10);
  --shadow-lg: 0 8px 40px rgba(59,149,240,0.16);
  --font: 'Plus Jakarta Sans', sans-serif;
  --font2: 'Nunito', sans-serif;
  --transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
}
[data-theme="dark"] {
  --blue-50: #0f1c2e;
  --blue-100: #162236;
  --white: #0f1923;
  --gray-50: #151e2a;
  --gray-100: #1a2535;
  --gray-200: #243043;
  --gray-300: #3a4a60;
  --gray-400: #7a8fa6;
  --gray-500: #9fb4cb;
  --gray-600: #b8cfe0;
  --gray-700: #d0e3f0;
  --gray-800: #e8f2fb;
  --yellow-pastel: #2a2110;
  --yellow-soft: #2e2413;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--gray-50);
  color: var(--gray-700);
  min-height: 100vh;
  overflow-x: hidden;
}
/* ── LOGIN ── */
#login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue-50) 0%, var(--yellow-pastel) 50%, var(--blue-100) 100%);
  position: relative;
  overflow: hidden;
}
#login-screen::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,149,240,0.12) 0%, transparent 70%);
  top: -150px; right: -150px;
}
#login-screen::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(253,224,71,0.18) 0%, transparent 70%);
  bottom: -100px; left: -100px;
}
.login-card {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  border-radius: 28px;
  padding: 48px 44px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(59,149,240,0.18), 0 2px 8px rgba(0,0,0,0.06);
  position: relative;
  z-index: 2;
  animation: fadeInUp 0.5s ease;
}
.login-logo {
  text-align: center;
  margin-bottom: 32px;
}
.login-logo .logo-icon {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--blue-400), var(--blue-600));
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: white;
  box-shadow: 0 8px 24px rgba(59,149,240,0.35);
  margin-bottom: 14px;
}
.login-logo h1 { font-size: 22px; font-weight: 800; color: var(--blue-700); font-family: var(--font2); }
.login-logo p { font-size: 13px; color: var(--gray-500); margin-top: 4px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-600); margin-bottom: 8px; }
.input-wrap { position: relative; }
.input-wrap i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--blue-400); font-size: 15px; }
.input-wrap input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  font-size: 14px;
  font-family: var(--font);
  background: var(--gray-50);
  color: var(--gray-700);
  transition: var(--transition);
  outline: none;
}
.input-wrap input:focus { border-color: var(--blue-400); background: white; box-shadow: 0 0 0 3px rgba(59,149,240,0.12); }
.toggle-pass { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); cursor: pointer; color: var(--gray-400); font-size: 14px; }
.btn-login {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: var(--transition);
  margin-top: 8px;
  box-shadow: 0 4px 16px rgba(59,149,240,0.35);
}
.btn-login:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(59,149,240,0.4); }
.login-hint { text-align: center; margin-top: 16px; font-size: 12px; color: var(--gray-400); background: var(--blue-50); padding: 8px 14px; border-radius: 8px; }
/* ── APP LAYOUT ── */
#app { display: none; min-height: 100vh; }
.sidebar {
  position: fixed;
  left: 0; top: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: linear-gradient(180deg, #1d62d1 0%, #1a56b8 40%, #163f8a 100%);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform 0.3s ease;
  overflow-y: auto;
}
.sidebar-logo {
  padding: 28px 22px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.sidebar-logo .brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar-logo .brand-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.18);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--yellow-300);
}
.sidebar-logo .brand-text h2 { font-size: 14px; font-weight: 800; color: white; font-family: var(--font2); line-height: 1.2; }
.sidebar-logo .brand-text span { font-size: 11px; color: rgba(255,255,255,0.6); }
.sidebar-nav { flex: 1; padding: 16px 12px; }
.nav-section-label { font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 1.5px; padding: 0 10px; margin: 16px 0 6px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
  text-decoration: none;
  position: relative;
}
.nav-item i { width: 20px; text-align: center; font-size: 16px; }
.nav-item:hover { background: rgba(255,255,255,0.10); color: white; }
.nav-item.active { background: rgba(255,255,255,0.18); color: white; font-weight: 700; }
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 24px;
  background: var(--yellow-300);
  border-radius: 0 3px 3px 0;
}
.nav-item .badge {
  margin-left: auto;
  background: var(--yellow-300);
  color: #1d4ed8;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 20px;
  min-width: 20px;
  text-align: center;
}
.sidebar-bottom {
  padding: 16px 12px;
  border-top: 1px solid rgba(255,255,255,0.10);
}
.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.10);
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
}
.user-card:hover { background: rgba(255,255,255,0.16); }
.user-avatar {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--yellow-300), var(--yellow-400));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: #1d4ed8;
}
.user-info h4 { font-size: 13px; font-weight: 700; color: white; }
.user-info p { font-size: 11px; color: rgba(255,255,255,0.55); }
/* ── MAIN CONTENT ── */
.main-content {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  transition: margin-left 0.3s ease;
}
.topbar {
  background: var(--white);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.topbar-left { display: flex; align-items: center; gap: 14px; }
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--gray-600);
  cursor: pointer;
}
.topbar-title h2 { font-size: 18px; font-weight: 800; color: var(--gray-800); }
.topbar-title p { font-size: 12px; color: var(--gray-400); }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1.5px solid var(--gray-200);
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: var(--gray-500);
  transition: var(--transition);
}
.icon-btn:hover { border-color: var(--blue-300); color: var(--blue-500); background: var(--blue-50); }
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gray-100);
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  padding: 7px 14px;
  transition: var(--transition);
}
.search-box:focus-within { border-color: var(--blue-400); background: var(--blue-50); }
.search-box i { color: var(--gray-400); font-size: 14px; }
.search-box input { background: none; border: none; outline: none; font-size: 13px; color: var(--gray-700); font-family: var(--font); width: 180px; }
.page { display: none; padding: 28px; animation: fadeInUp 0.3s ease; }
.page.active { display: block; }
/* ── DASHBOARD ── */
.greeting-card {
  background: linear-gradient(135deg, var(--blue-500) 0%, var(--blue-700) 60%, #163f8a 100%);
  border-radius: var(--radius);
  padding: 28px 32px;
  color: white;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}
.greeting-card::after {
  content: '📚';
  position: absolute;
  right: 32px; top: 50%;
  transform: translateY(-50%);
  font-size: 72px;
  opacity: 0.2;
}
.greeting-card h2 { font-size: 22px; font-weight: 800; font-family: var(--font2); }
.greeting-card p { font-size: 14px; opacity: 0.85; margin-top: 6px; }
.greeting-card .date-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.18);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 14px;
}
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  border: 1.5px solid var(--gray-200);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.stat-card:hover { border-color: var(--blue-200); box-shadow: var(--shadow); transform: translateY(-2px); }
.stat-card .stat-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}
.stat-card .stat-value { font-size: 28px; font-weight: 800; color: var(--gray-800); font-family: var(--font2); }
.stat-card .stat-label { font-size: 12px; color: var(--gray-500); margin-top: 4px; font-weight: 500; }
.stat-card .stat-change { font-size: 11px; color: var(--green-600); font-weight: 600; margin-top: 6px; }
.stat-blue .stat-icon { background: var(--blue-50); color: var(--blue-500); }
.stat-yellow .stat-icon { background: var(--yellow-soft); color: #d97706; }
.stat-green .stat-icon { background: var(--green-100); color: var(--green-600); }
.stat-purple .stat-icon { background: #f3e8ff; color: #9333ea; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1.5px solid var(--gray-200);
  overflow: hidden;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--gray-100);
}
.card-header h3 { font-size: 15px; font-weight: 700; color: var(--gray-800); }
.card-body { padding: 16px 22px; }
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}
.badge-blue { background: var(--blue-50); color: var(--blue-600); }
.badge-yellow { background: var(--yellow-soft); color: #92400e; }
.badge-green { background: var(--green-100); color: var(--green-600); }
.badge-red { background: var(--red-100); color: #b91c1c; }
.badge-orange { background: var(--orange-100); color: #c2410c; }
.schedule-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
}
.schedule-item:last-child { border-bottom: none; }
.sched-time {
  min-width: 56px;
  text-align: center;
  background: var(--blue-50);
  color: var(--blue-600);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 8px;
  border-radius: 10px;
}
.sched-info h4 { font-size: 13px; font-weight: 700; color: var(--gray-700); }
.sched-info p { font-size: 12px; color: var(--gray-400); }
.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
}
.activity-item:last-child { border-bottom: none; }
.activity-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
/* ── STUDENTS ── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 12px;
}
.page-header h2 { font-size: 20px; font-weight: 800; color: var(--gray-800); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: white;
  box-shadow: 0 4px 12px rgba(59,149,240,0.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(59,149,240,0.4); }
.btn-secondary { background: var(--gray-100); color: var(--gray-600); border: 1.5px solid var(--gray-200); }
.btn-secondary:hover { background: var(--gray-200); }
.btn-danger { background: var(--red-100); color: #b91c1c; }
.btn-danger:hover { background: #fecaca; }
.btn-whatsapp { background: #25d366; color: white; }
.btn-whatsapp:hover { background: #1fba5a; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.filter-chip {
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-500);
  transition: var(--transition);
}
.filter-chip.active, .filter-chip:hover { border-color: var(--blue-400); background: var(--blue-50); color: var(--blue-600); }
.students-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.student-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1.5px solid var(--gray-200);
  overflow: hidden;
  transition: var(--transition);
}
.student-card:hover { border-color: var(--blue-300); box-shadow: var(--shadow); transform: translateY(-3px); }
.student-card-top {
  padding: 20px 20px 14px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.student-avatar {
  width: 56px; height: 56px;
  border-radius: 16px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--blue-200), var(--blue-400));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
  font-family: var(--font2);
}
.student-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.student-info h4 { font-size: 15px; font-weight: 800; color: var(--gray-800); }
.student-info .student-class { font-size: 12px; color: var(--gray-400); margin-top: 2px; }
.student-info .student-program { margin-top: 6px; }
.student-card-body { padding: 0 20px 14px; }
.student-detail { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--gray-500); margin-top: 6px; }
.student-detail i { width: 16px; color: var(--blue-400); }
.student-card-footer {
  padding: 12px 20px;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,25,50,0.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--white);
  border-radius: 24px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: fadeInUp 0.25s ease;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  border-bottom: 1px solid var(--gray-100);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 2;
  border-radius: 24px 24px 0 0;
}
.modal-header h3 { font-size: 17px; font-weight: 800; color: var(--gray-800); }
.modal-close {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--gray-100);
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.modal-close:hover { background: var(--red-100); color: var(--red-500); }
.modal-body { padding: 22px 26px; }
.modal-footer { padding: 16px 26px; border-top: 1px solid var(--gray-100); display: flex; gap: 10px; justify-content: flex-end; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-col { grid-column: span 2; }
.form-field { margin-bottom: 2px; }
.form-field label { display: block; font-size: 12px; font-weight: 700; color: var(--gray-600); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-size: 13px;
  font-family: var(--font);
  color: var(--gray-700);
  background: var(--gray-50);
  outline: none;
  transition: var(--transition);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--blue-400);
  background: white;
  box-shadow: 0 0 0 3px rgba(59,149,240,0.10);
}
.form-field textarea { min-height: 90px; resize: vertical; }
.photo-upload {
  border: 2px dashed var(--gray-300);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--gray-50);
}
.photo-upload:hover { border-color: var(--blue-400); background: var(--blue-50); }
.photo-upload i { font-size: 32px; color: var(--blue-300); display: block; margin-bottom: 8px; }
.photo-upload p { font-size: 12px; color: var(--gray-400); }
.photo-upload input { display: none; }
/* ── REPORT ── */
.report-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1.5px solid var(--gray-200);
  margin-bottom: 16px;
  overflow: hidden;
  transition: var(--transition);
}
.report-card:hover { border-color: var(--blue-200); box-shadow: var(--shadow); }
.report-card-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to right, var(--blue-50), var(--yellow-pastel));
  border-bottom: 1px solid var(--gray-100);
}
.report-card-header .student-name { font-size: 15px; font-weight: 800; color: var(--gray-800); }
.report-card-header .report-date { font-size: 12px; color: var(--gray-500); margin-top: 2px; }
.report-card-body { padding: 18px 20px; }
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.report-field { background: var(--gray-50); border-radius: 10px; padding: 12px 14px; border: 1px solid var(--gray-100); }
.report-field .field-label { font-size: 10px; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 4px; }
.report-field .field-value { font-size: 13px; font-weight: 600; color: var(--gray-700); }
.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 800;
  font-family: var(--font2);
}
.score-a { background: var(--green-100); color: var(--green-600); }
.score-b { background: var(--blue-50); color: var(--blue-600); }
.score-c { background: var(--yellow-soft); color: #92400e; }
/* ── ATTENDANCE ── */
.attendance-table { width: 100%; border-collapse: collapse; }
.attendance-table th { background: var(--blue-50); color: var(--blue-600); font-size: 12px; font-weight: 700; padding: 10px 14px; text-align: left; }
.attendance-table td { padding: 12px 14px; border-bottom: 1px solid var(--gray-100); font-size: 13px; color: var(--gray-700); }
.attendance-table tr:hover td { background: var(--gray-50); }
.attendance-btn {
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1.5px solid var(--gray-200);
  background: var(--gray-50);
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.att-hadir.selected, .att-hadir:hover { background: var(--green-100); border-color: var(--green-500); color: var(--green-600); }
.att-izin.selected, .att-izin:hover { background: var(--blue-50); border-color: var(--blue-400); color: var(--blue-600); }
.att-sakit.selected, .att-sakit:hover { background: var(--yellow-soft); border-color: #d97706; color: #92400e; }
.att-alfa.selected, .att-alfa:hover { background: var(--red-100); border-color: var(--red-500); color: var(--red-500); }
/* ── SCHEDULE ── */
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-header { text-align: center; font-size: 11px; font-weight: 700; color: var(--gray-400); padding: 8px 0; }
.cal-day {
  aspect-ratio: 1;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  gap: 2px;
}
.cal-day:hover { background: var(--blue-50); }
.cal-day.today { background: var(--blue-500); color: white; font-weight: 800; }
.cal-day.has-schedule::after {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--yellow-400);
  position: absolute;
  bottom: 5px;
}
.cal-day.other-month { color: var(--gray-300); }
/* ── PARENT VIEW ── */
.parent-hero {
  background: linear-gradient(135deg, var(--blue-400), var(--blue-600));
  border-radius: var(--radius);
  padding: 24px;
  color: white;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.parent-hero .avatar {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: white;
  font-family: var(--font2);
  flex-shrink: 0;
}
.progress-bar-wrap { background: var(--gray-100); border-radius: 8px; height: 10px; overflow: hidden; margin-top: 6px; }
.progress-bar { height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--blue-400), var(--blue-600)); transition: width 1s ease; }
/* ── PRINT STYLES ── */
.print-preview {
  background: white;
  border-radius: var(--radius);
  border: 1.5px solid var(--gray-200);
  overflow: hidden;
}
.print-header {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: white;
  padding: 28px 36px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.print-logo {
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
/* ── ANIMATIONS ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--gray-800);
  color: white;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  z-index: 999;
  display: none;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  animation: fadeInUp 0.3s ease;
  max-width: 300px;
}
.toast.show { display: flex; }
.toast.success { background: var(--green-600); }
.toast.error { background: var(--red-500); }
/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .menu-toggle { display: flex; }
  .grid-2 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-col { grid-column: span 1; }
  .report-grid { grid-template-columns: 1fr; }
  .page { padding: 16px; }
  .search-box input { width: 120px; }
  .students-grid { grid-template-columns: 1fr; }
}
.sidebar-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 99;
  display: none;
}
.sidebar-overlay.active { display: block; }
/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--gray-400);
}
.empty-state i { font-size: 48px; display: block; margin-bottom: 14px; opacity: 0.4; }
.empty-state h3 { font-size: 16px; font-weight: 700; color: var(--gray-500); margin-bottom: 6px; }
.empty-state p { font-size: 13px; }
/* sections highlight */
.islamic-ornament {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-400);
  font-size: 12px;
  margin: 8px 0 18px;
}
.islamic-ornament::before, .islamic-ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}
