/* ============================================
   SIPAUDQU - Sistem Informasi PAUD Qur'an
   Main Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --primary: #f59e0b;
  --primary-dark: #d97706;
  --blue: #3b82f6;
  --blue-dark: #2563eb;
  --green: #22c55e;
  --green-dark: #16a34a;
  --red: #ef4444;
  --yellow: #facc15;
  --purple: #a855f7;
  --orange: #f97316;
  --white: #ffffff;
  --gray-light: #f1f5f9;
  --gray: #94a3b8;
  --text-dark: #1e293b;
  --text-medium: #475569;
  --sidebar-width: 200px;
  --header-height: 0px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Nunito', sans-serif;
  background: linear-gradient(180deg, #87CEEB 0%, #b8e4f9 50%, #4CAF50 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Sky & Grass Background */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 75%;
  background: linear-gradient(180deg, #5bb8f5 0%, #87ceeb 40%, #b8e4f9 100%);
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 30%;
  background: linear-gradient(180deg, #5cb85c 0%, #4CAF50 50%, #388e3c 100%);
  border-radius: 60% 60% 0 0 / 30px 30px 0 0;
  z-index: 0;
}

/* Clouds decoration */
.cloud {
  position: fixed;
  background: white;
  border-radius: 50px;
  opacity: 0.8;
  z-index: 0;
}
.cloud::before, .cloud::after {
  content: '';
  position: absolute;
  background: white;
  border-radius: 50%;
}
.cloud-1 { width: 120px; height: 40px; top: 8%; left: 5%; }
.cloud-1::before { width: 60px; height: 60px; top: -30px; left: 15px; }
.cloud-1::after { width: 40px; height: 40px; top: -20px; left: 50px; }
.cloud-2 { width: 90px; height: 30px; top: 15%; left: 30%; opacity: 0.6; }
.cloud-2::before { width: 45px; height: 45px; top: -22px; left: 10px; }
.cloud-2::after { width: 35px; height: 35px; top: -15px; left: 38px; }
.cloud-3 { width: 100px; height: 35px; top: 10%; right: 10%; opacity: 0.7; }
.cloud-3::before { width: 50px; height: 50px; top: -25px; left: 12px; }
.cloud-3::after { width: 38px; height: 38px; top: -18px; left: 44px; }

/* ============================================
   LOGIN PAGE
   ============================================ */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

.login-brand {
  text-align: center;
  margin-bottom: 30px;
}

.logo-text {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  line-height: 1;
  margin-bottom: 10px;
}

.logo-text span { display: inline-block; }
.logo-text .s { color: #ef4444; }
.logo-text .i { color: #f97316; }
.logo-text .p { color: #eab308; }
.logo-text .a { color: #22c55e; }
.logo-text .u { color: #3b82f6; }
.logo-text .d { color: #a855f7; }
.logo-text .q { color: #ef4444; }
.logo-text .u2 { color: #f97316; }

.logo-subtitle {
  font-size: 1rem;
  color: #475569;
  font-weight: 700;
}

.logo-subtitle span { color: var(--primary); }

.login-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 28px;
  padding: 40px 36px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.12);
  position: relative;
  z-index: 2;
}

.login-card h2 {
  margin-bottom: 24px;
  font-size: 2rem;
  color: #f59e0b;
  text-align: center;
}

.form-group { margin-bottom: 18px; }

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 14px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-wrapper:hover,
.input-wrapper:focus-within {
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 18px 45px rgba(245, 158, 11, 0.12);
}

.input-icon {
  color: #64748b;
  width: 28px;
  display: flex;
  justify-content: center;
  font-size: 1rem;
}

.input-wrapper input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  color: #1e293b;
  font-size: 0.95rem;
}

.input-wrapper input::placeholder { color: #94a3b8; }

.eye-icon {
  color: #64748b;
  cursor: pointer;
  font-size: 1rem;
}

.btn-login {
  width: 100%;
  margin-top: 8px;
  padding: 14px 18px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), #f59e0b);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 18px 40px rgba(245, 158, 11, 0.24);
}

.btn-login:hover { transform: translateY(-1px); }

.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.alert-danger {
  background: #fff1f0;
  color: #9a3412;
  border: 1px solid #fecaca;
}

.alert-success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #86efac;
}

.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  color: rgba(15, 23, 42, 0.7);
  margin-top: 24px;
  font-size: 0.9rem;
  padding: 14px 0;
}

@media (max-width: 640px) {
  .login-card { padding: 32px 24px; }
  .logo-text { font-size: 2.4rem; }
  .input-wrapper { padding: 12px 14px; }
  .page-wrapper { min-height: 100vh; }
}

/* ============================================
   LAYOUT
   ============================================ */

.page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* ============================================
   HEADER
   ============================================ */

.site-header {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--primary);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo-text {
  font-family: 'Nunito', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 1px;
}

.header-logo-text .s { color: #ef4444; }
.header-logo-text .i { color: #f97316; }
.header-logo-text .p { color: #eab308; }
.header-logo-text .a { color: #22c55e; }
.header-logo-text .u { color: #3b82f6; }
.header-logo-text .d { color: #a855f7; }
.header-logo-text .q { color: #ef4444; }
.header-logo-text .u2 { color: #f97316; }

.header-subtitle {
  font-size: 0.7rem;
  color: var(--blue);
  font-weight: 700;
}

.header-subtitle span {
  color: var(--primary);
}

.header-user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-medium);
  font-weight: 600;
}

.header-user-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--orange));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}

/* ============================================
   MAIN LAYOUT WITH SIDEBAR
   ============================================ */

.layout-container {
  display: flex;
  min-height: calc(100vh - 60px);
  max-width: 1000px;
  margin: 20px auto;
  padding: 0 15px;
  gap: 15px;
}

/* ============================================
   SIDEBAR
   ============================================ */

.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 15px 0;
  height: fit-content;
  position: sticky;
  top: 80px;
}

.sidebar-nav {
  list-style: none;
  padding: 0;
}

.sidebar-nav li {
  margin: 4px 8px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-medium);
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.sidebar-nav a:hover {
  background: var(--gray-light);
  color: var(--text-dark);
}

.sidebar-nav a.active {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  box-shadow: 0 4px 15px rgba(59,130,246,0.4);
}

.sidebar-nav .nav-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.sidebar-logout {
  margin: 15px 8px 5px;
}

.sidebar-logout a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 4px 15px rgba(245,158,11,0.4);
  transition: all 0.2s;
}

.sidebar-logout a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,158,11,0.5);
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
  flex: 1;
  min-width: 0;
}

.content-card {
  background: rgba(255,255,255,0.97);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 20px;
  margin-bottom: 15px;
}

/* Welcome Banner */
.welcome-banner {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: white;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}

.welcome-banner h3 {
  font-size: 0.9rem;
  font-weight: 800;
}

.welcome-banner p {
  font-size: 0.78rem;
  opacity: 0.9;
}

/* Student Info Box */
.student-info-box {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 10px 15px;
  margin-bottom: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dark);
}

.student-info-box .student-class {
  color: var(--text-medium);
  font-weight: 600;
}

/* ============================================
   DASHBOARD SPECIFIC
   ============================================ */

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 10px;
}

.biodata-card {
  background: white;
  border-radius: var(--radius-sm);
  padding: 15px;
  border: 1px solid #e2e8f0;
}

.biodata-card h4 {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.biodata-table {
  width: 100%;
  font-size: 0.78rem;
  border-collapse: collapse;
}

.biodata-table tr td {
  padding: 3px 0;
  color: var(--text-medium);
}

.biodata-table tr td:first-child {
  font-weight: 700;
  color: var(--text-dark);
  width: 90px;
}

.biodata-table tr td:nth-child(2) {
  width: 10px;
  color: var(--gray);
}

/* Attendance Summary */
.absensi-card {
  background: white;
  border-radius: var(--radius-sm);
  padding: 15px;
  border: 1px solid #e2e8f0;
}

.absensi-card h4 {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.absensi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.absensi-item {
  padding: 10px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
}

.absensi-item.hadir { background: #dcfce7; color: #16a34a; border: 1px solid #86efac; }
.absensi-item.alpha { background: #fef9c3; color: #854d0e; border: 1px solid #fde047; }
.absensi-item.sakit { background: #fee2e2; color: #dc2626; border: 1px solid #fca5a5; }
.absensi-item.izin { background: #fef3c7; color: #d97706; border: 1px solid #fcd34d; }

/* Activity & Development Cards */
.info-card-mini {
  background: white;
  border-radius: var(--radius-sm);
  padding: 15px;
  border: 1px solid #e2e8f0;
}

.info-card-mini h4 {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.activity-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.activity-date {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  text-align: center;
  font-weight: 800;
  min-width: 50px;
  font-size: 0.78rem;
}

.activity-date .day-num {
  font-size: 1.2rem;
  display: block;
  line-height: 1;
}

.activity-info h5 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dark);
}

.activity-info p {
  font-size: 0.72rem;
  color: var(--text-medium);
  margin-top: 2px;
}

.activity-info .teacher {
  font-size: 0.7rem;
  color: var(--gray);
  margin-top: 2px;
}

.dev-item {
  padding: 10px;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.dev-item h5 {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--blue-dark);
}

.dev-item .dev-month {
  font-size: 0.7rem;
  color: var(--text-medium);
}

.dev-item p {
  font-size: 0.72rem;
  color: var(--text-medium);
  margin-top: 3px;
}

/* ============================================
   JADWAL BELAJAR
   ============================================ */

.theme-banner {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 1px solid #86efac;
  border-radius: var(--radius-sm);
  padding: 10px 15px;
  font-size: 0.82rem;
  color: var(--text-dark);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-banner .theme-highlight {
  color: var(--primary);
  font-weight: 800;
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.schedule-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.schedule-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.schedule-date {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  text-align: center;
  font-weight: 800;
  min-width: 48px;
  font-size: 0.75rem;
}

.schedule-date .date-num {
  font-size: 1.1rem;
  display: block;
  line-height: 1;
}

.schedule-info h5 {
  font-size: 0.83rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.schedule-info p {
  font-size: 0.75rem;
  color: var(--text-medium);
}

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 800;
  margin-bottom: 5px;
}

.badge-mengenal { background: #fef3c7; color: #92400e; }
.badge-mewarnai { background: #fee2e2; color: #991b1b; }
.badge-menghitung { background: #dbeafe; color: #1e40af; }
.badge-motorik { background: #f0fdf4; color: #166534; }
.badge-bermain { background: #fdf4ff; color: #6b21a8; }
.badge-outdoor { background: #fff7ed; color: #9a3412; }

/* ============================================
   LAPORAN ANAK - TABS
   ============================================ */

.tab-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 8px 14px;
  border-radius: 20px;
  border: 2px solid #e2e8f0;
  background: white;
  color: var(--text-medium);
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  font-family: 'Nunito', sans-serif;
}

.tab-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(245,158,11,0.3);
}

/* Rekap Absensi */
.rekap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
  text-align: center;
}

.rekap-item {
  background: #f8fafc;
  border-radius: var(--radius-sm);
  padding: 15px 10px;
  border: 1px solid #e2e8f0;
}

.rekap-item .rekap-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-medium);
  margin-bottom: 5px;
}

.rekap-item .rekap-value {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--text-dark);
}

/* Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.data-table th {
  background: #f1f5f9;
  padding: 10px 12px;
  text-align: left;
  font-weight: 800;
  color: var(--text-dark);
  border-bottom: 2px solid #e2e8f0;
  font-size: 0.78rem;
}

.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--text-medium);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: #f8fafc;
}

.status-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 800;
}

.status-hadir { background: #dcfce7; color: #16a34a; }
.status-sakit { background: #fee2e2; color: #dc2626; }
.status-izin  { background: #fef3c7; color: #d97706; }
.status-alpha { background: #e0e7ff; color: #4338ca; }

/* Perkembangan Anak */
.dev-aspect-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 15px;
  margin-bottom: 12px;
  border-left: 4px solid var(--blue);
}

.dev-aspect-card.motorik { border-left-color: var(--green); }
.dev-aspect-card.sosial { border-left-color: var(--purple); }
.dev-aspect-card.kognitif { border-left-color: var(--orange); }

.dev-aspect-card h4 {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 5px;
}

.dev-aspect-card.motorik h4 { color: var(--green-dark); }
.dev-aspect-card.sosial h4 { color: #7c3aed; }
.dev-aspect-card.kognitif h4 { color: var(--orange); }

.dev-aspect-card p {
  font-size: 0.78rem;
  color: var(--text-medium);
  line-height: 1.5;
}

/* Bulan Filter */
.month-filter {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 15px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dark);
}

.month-filter select {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-dark);
  outline: none;
  cursor: pointer;
}

/* Section heading */
.section-heading {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20px;
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  font-weight: 600;
}

.site-footer a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-weight: 700;
}

/* ============================================
   LOGIN PAGE
   ============================================ */

.login-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  position: relative;
  z-index: 1;
  padding: 20px;
}

.login-brand {
  text-align: center;
  margin-bottom: 25px;
}

.logo-text {
  font-family: 'Nunito', sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1;
}

.logo-text .s { color: #ef4444; }
.logo-text .i { color: #f97316; }
.logo-text .p { color: #eab308; }
.logo-text .a { color: #22c55e; }
.logo-text .u { color: #3b82f6; }
.logo-text .d { color: #a855f7; }
.logo-text .q { color: #ef4444; }
.logo-text .u2 { color: #f97316; }

.logo-subtitle {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1d4ed8;
  margin-top: 2px;
}

.logo-subtitle span {
  color: var(--primary);
}

.login-card {
  background: rgba(255,255,255,0.97);
  border-radius: 20px;
  padding: 35px 30px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.login-card h2 {
  text-align: center;
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 18px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper .input-icon {
  position: absolute;
  left: 14px;
  color: var(--gray);
  font-size: 1rem;
}

.input-wrapper input {
  width: 100%;
  padding: 13px 45px;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s;
  background: #f8fafc;
}

.input-wrapper input:focus {
  border-color: var(--primary);
  background: white;
}

.input-wrapper input::placeholder {
  color: var(--gray);
  font-weight: 600;
}

.input-wrapper .eye-icon {
  position: absolute;
  right: 14px;
  color: var(--gray);
  cursor: pointer;
  font-size: 1rem;
}

.btn-login {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(245,158,11,0.4);
  transition: all 0.2s;
  margin-top: 8px;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245,158,11,0.5);
}

.forgot-link {
  text-align: center;
  margin-top: 15px;
}

.forgot-link a {
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.forgot-link a:hover {
  text-decoration: underline;
}

/* Alert */
.alert {
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 15px;
}
.alert-danger { background: #fee2e2; color: #dc2626; border: 1px solid #fca5a5; }
.alert-success { background: #dcfce7; color: #16a34a; border: 1px solid #86efac; }

/* ============================================
   RESPONSIVE
   ============================================ */

/* Mobile Menu Toggle & Overlay */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-dark);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
  margin-right: 5px;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 150;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}


@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .header-brand {
    gap: 8px;
  }

  .layout-container {
    padding: 0 10px;
    display: block; /* Disable flex row */
  }
  
  .sidebar {
    position: fixed;
    top: 0;
    left: -280px; /* Hide off-canvas */
    width: 260px;
    height: 100vh;
    z-index: 200;
    margin: 0;
    border-radius: 0;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 2px 0 15px rgba(0,0,0,0.2);
    padding-top: 20px;
  }
  
  .sidebar.active {
    left: 0; /* Slide in */
  }
  
  .sidebar-nav {
    display: block;
    padding: 10px 0;
  }
  
  .sidebar-nav li {
    margin: 4px 15px;
  }
  
  .sidebar-nav a {
    padding: 12px 15px;
    font-size: 0.9rem;
  }
  
  .sidebar-logout {
    margin: 20px 15px;
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .rekap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .logo-text {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .tab-nav {
    flex-direction: column;
  }
  
  .rekap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .data-table {
    font-size: 0.72rem;
  }
  
  .data-table th, .data-table td {
    padding: 8px 8px;
  }
}