/* ============================================
   WEBSEKOLAH - Premium CSS Design System
   Font: Plus Jakarta Sans | Theme: Adiwiyata
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  --primary: #16A34A;
  --primary-dark: #15803D;
  --primary-light: #4ADE80;
  --secondary: #D97706;
  --dark: #064E3B;
  --dark-soft: #1E293B;
  --light: #F0FDF4;
  --light-gray: #F8FAFC;
  --white: #FFFFFF;
  --border: #E2E8F0;
  --text-muted: #64748B;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow-xs: 0 1px 2px 0 rgba(0,0,0,0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0,0,0,0.08), 0 1px 2px -1px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.08), 0 4px 8px -4px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 40px -5px rgba(0,0,0,0.1), 0 8px 16px -6px rgba(0,0,0,0.05);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   UTILITIES
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }

/* Fade-in animation utility */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.6s ease-out forwards; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 0.875rem 0;
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: -0.025em;
  transition: var(--transition);
}
.navbar-brand:hover { color: var(--primary-dark); }

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark-soft);
  font-weight: 600;
  font-size: 0.925rem;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--primary);
  background: rgba(22, 163, 74, 0.08);
}

.nav-links a.active,
.nav-links li a[href="index.php"]:first-child {
  color: var(--primary);
  background: rgba(22, 163, 74, 0.1);
  font-weight: 700;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.925rem;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  letter-spacing: 0.01em;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  box-shadow: 0 4px 14px 0 rgba(22, 163, 74, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px 0 rgba(22, 163, 74, 0.4);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* ============================================
   HERO SLIDER
   ============================================ */
.hero-slider {
  position: relative;
  height: 68vh;
  min-height: 480px;
  max-height: 640px;
  overflow: hidden;
  background: var(--dark);
  max-width: 1200px;
  margin: 1.5rem auto 0;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: calc(100% - 3rem);
}

.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: left;
  z-index: 1;
  padding-bottom: 6rem;
}

.slide.active { opacity: 1; z-index: 2; }

.slide-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0) 100%);
  z-index: 1;
}

.slide-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 900px;
  width: 100%;
  padding: 0 2rem;
  text-align: left;
}

.slide-content h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.8s ease 0.3s;
}

.slide-content p {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  color: rgba(255,255,255,0.88);
  max-width: 550px;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.8s ease 0.5s;
}

.slide-content .btn-group {
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.8s ease 0.7s;
}

.slide.active .slide-content h1,
.slide.active .slide-content p,
.slide.active .slide-content .btn-group {
  transform: translateY(0);
  opacity: 1;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
  width: 48px; height: 48px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  font-size: 1.25rem;
  transition: var(--transition);
}
.slider-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.1);
}
.prev-btn { left: 1.5rem; }
.next-btn { right: 1.5rem; }

.slider-dots {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.5rem;
}
.dot {
  width: 8px; height: 8px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}
.dot.active {
  background: var(--white);
  width: 28px;
  border-radius: 99px;
}

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 5.5rem 0; }

.section-title {
  text-align: center;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--dark);
  letter-spacing: -0.025em;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 99px;
  margin: 0.75rem auto 0;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ============================================
   CARDS
   ============================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(22, 163, 74, 0.2);
}

.card-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 16px -4px rgba(22, 163, 74, 0.3);
}

.card-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--dark);
  letter-spacing: -0.015em;
}

/* ============================================
   FACILITY CARDS
   ============================================ */
.facility-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.facility-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.facility-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.facility-card:hover .facility-img { transform: scale(1.06); }

.facility-info {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.facility-info h3 {
  font-size: 1.05rem;
  color: var(--dark);
  margin-bottom: 0.4rem;
  font-weight: 800;
}

.facility-info p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: linear-gradient(135deg, #022c22 0%, var(--dark) 100%);
  color: var(--white);
  padding: 5rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-col h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-light);
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
  display: block;
}

.footer-col p {
  color: rgba(255,255,255,0.55);
  font-size: 0.925rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.875rem;
}
.footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.875rem; }
.footer-col ul li i {
  width: 20px;
  color: var(--primary-light);
  margin-right: 0.5rem;
  font-size: 0.875rem;
}

.footer-col a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.925rem;
}
.footer-col a:hover { color: var(--primary-light); padding-left: 4px; }

.footer-col ul li:not(:has(a)) {
  color: rgba(255,255,255,0.55);
  font-size: 0.925rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.75rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-bottom a:hover { color: var(--primary-light); }

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem;
  overflow-y: auto;
}

.modal-content {
  background: var(--white);
  border-radius: var(--radius-2xl);
  max-width: 720px;
  width: 100%;
  position: relative;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.35);
  animation: modalFadeIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-bottom: 2rem;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  font-size: 1.5rem;
  color: #94A3B8;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #F1F5F9;
}
.modal-close:hover { color: #EF4444; background: #FEE2E2; }

.modal-body { padding: 2.5rem; }

.chart-container {
  margin-top: 2rem;
  background: #F9FAFB;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border);
}

/* ============================================
   FORM STYLES
   ============================================ */
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: #374151; }
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
  color: var(--dark-soft);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}
.form-control:hover { border-color: #94A3B8; }

/* ============================================
   AUTH PAGES
   ============================================ */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, #022c22 100%);
  padding: 2rem;
}

.auth-card {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  padding: 3rem;
  border-radius: var(--radius-2xl);
  width: 100%;
  max-width: 420px;
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.35);
}

/* ============================================
   DASHBOARD LAYOUT
   ============================================ */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 272px;
  background: linear-gradient(180deg, #0C2E1E 0%, #0A2318 50%, #061A11 100%);
  color: var(--white);
  padding: 1.75rem 0 2rem;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 99px; }

.sidebar-header {
  padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 0.5rem;
}

/* ---- Sidebar Menu: Parent Items ---- */
.sidebar-menu { margin-top: 0.75rem; list-style: none; padding: 0 0.625rem; }

.sidebar-menu > li { margin-bottom: 0.125rem; }

.sidebar-menu > li > a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  letter-spacing: 0.01em;
  position: relative;
}

.sidebar-menu > li > a i.fa-fw {
  font-size: 1rem;
  width: 20px;
  text-align: center;
  transition: var(--transition);
}

.sidebar-menu > li > a:hover {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.95);
}

.sidebar-menu > li > a:hover i.fa-fw {
  color: var(--primary-light);
}

.sidebar-menu > li > a.active {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.2) 0%, rgba(74, 222, 128, 0.1) 100%);
  color: #4ADE80;
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--primary-light);
}

.sidebar-menu > li > a.active i.fa-fw {
  color: #4ADE80;
}

/* ---- Menu Section Divider ---- */
.sidebar-menu > li.has-submenu {
  margin-top: 0.375rem;
}

/* ---- Submenu Parent (has-submenu > a) ---- */
.has-submenu > a {
  justify-content: space-between;
}

.has-submenu > a span {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.submenu-arrow {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.7rem;
  opacity: 0.5;
}

.has-submenu.open > a {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.9);
}

.has-submenu.open .submenu-arrow {
  transform: rotate(180deg);
  opacity: 0.8;
}

/* ---- Submenu Container ---- */
.submenu {
  list-style: none;
  display: none;
  margin: 0.25rem 0 0.5rem 0;
  padding: 0.5rem 0;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  border-left: 2px solid rgba(74, 222, 128, 0.15);
  margin-left: 1.25rem;
  position: relative;
  overflow: hidden;
}

.submenu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.03) 0%, transparent 100%);
  pointer-events: none;
}

.has-submenu.open .submenu {
  display: block;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Submenu Items ---- */
.submenu li a {
  padding: 0.55rem 1rem 0.55rem 1.25rem !important;
  font-size: 0.82rem !important;
  color: rgba(255,255,255,0.45) !important;
  font-weight: 500 !important;
  border-left: none !important;
  margin: 1px 0.375rem !important;
  border-radius: var(--radius-sm) !important;
  position: relative;
  transition: var(--transition);
}

.submenu li a i.fa-fw {
  font-size: 0.78rem !important;
  opacity: 0.6;
  width: 18px;
}

.submenu li a:hover {
  background: rgba(74, 222, 128, 0.08) !important;
  color: rgba(255,255,255,0.85) !important;
  padding-left: 1.5rem !important;
}

.submenu li a:hover i.fa-fw {
  opacity: 1;
  color: var(--primary-light) !important;
}

.submenu li a.active {
  background: rgba(74, 222, 128, 0.12) !important;
  color: #4ADE80 !important;
  font-weight: 700 !important;
  box-shadow: inset 2px 0 0 var(--primary-light);
}

.submenu li a.active i.fa-fw {
  opacity: 1;
  color: #4ADE80 !important;
}

/* ---- Unique Accent Colors per Menu Group ---- */
/* Menu Master - Emerald */
.sidebar-menu > li.has-submenu:nth-of-type(1) .submenu {
  border-left-color: rgba(16, 185, 129, 0.3);
}
.sidebar-menu > li.has-submenu:nth-of-type(1) > a i.fa-fw {
  color: #6EE7B7;
}

/* Manajemen Konten - Sky Blue */
.sidebar-menu > li.has-submenu:nth-of-type(2) .submenu {
  border-left-color: rgba(56, 189, 248, 0.3);
}
.sidebar-menu > li.has-submenu:nth-of-type(2) > a i.fa-fw {
  color: #7DD3FC;
}
.sidebar-menu > li.has-submenu:nth-of-type(2) .submenu li a.active {
  color: #7DD3FC !important;
  background: rgba(56, 189, 248, 0.1) !important;
  box-shadow: inset 2px 0 0 #38BDF8;
}
.sidebar-menu > li.has-submenu:nth-of-type(2) .submenu li a:hover {
  background: rgba(56, 189, 248, 0.06) !important;
}

/* Kearsipan - Amber */
.sidebar-menu > li.has-submenu:nth-of-type(3) .submenu {
  border-left-color: rgba(251, 191, 36, 0.3);
}
.sidebar-menu > li.has-submenu:nth-of-type(3) > a i.fa-fw {
  color: #FCD34D;
}
.sidebar-menu > li.has-submenu:nth-of-type(3) .submenu li a.active {
  color: #FCD34D !important;
  background: rgba(251, 191, 36, 0.1) !important;
  box-shadow: inset 2px 0 0 #FBBF24;
}
.sidebar-menu > li.has-submenu:nth-of-type(3) .submenu li a:hover {
  background: rgba(251, 191, 36, 0.06) !important;
}

/* Absensi - Rose */
.sidebar-menu > li.has-submenu:nth-of-type(4) .submenu {
  border-left-color: rgba(251, 113, 133, 0.3);
}
.sidebar-menu > li.has-submenu:nth-of-type(4) > a i.fa-fw {
  color: #FDA4AF;
}
.sidebar-menu > li.has-submenu:nth-of-type(4) .submenu li a.active {
  color: #FDA4AF !important;
  background: rgba(251, 113, 133, 0.1) !important;
  box-shadow: inset 2px 0 0 #FB7185;
}
.sidebar-menu > li.has-submenu:nth-of-type(4) .submenu li a:hover {
  background: rgba(251, 113, 133, 0.06) !important;
}

/* ---- Logout Special Styling ---- */
.sidebar-menu > li:last-child a {
  color: #FCA5A5 !important;
  opacity: 0.7;
  margin-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 1rem;
  border-radius: 0 !important;
}

.sidebar-menu > li:last-child a:hover {
  background: rgba(239, 68, 68, 0.1) !important;
  color: #FCA5A5 !important;
  opacity: 1;
}

.main-content {
  flex: 1;
  background: var(--light-gray);
  padding: 2.5rem;
  overflow-y: auto;
  min-width: 0;
}

/* ============================================
   TABLE STYLES
   ============================================ */
.data-table, .table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

.data-table th, .table th {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 2px solid var(--border);
  border-right: 1px solid var(--border);
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  background: #F8FAFC;
}

.data-table td, .table td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid #F1F5F9;
  font-size: 0.925rem;
  color: #334155;
}

.data-table th:last-child,
.data-table td:last-child { border-right: none; }

.data-table tr:hover td {
  background: rgba(22, 163, 74, 0.03);
}

/* ============================================
   BADGE & STATUS
   ============================================ */
.badge {
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-block;
}

.badge-notif {
  background: #EF4444;
  color: white;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 999px;
  margin-left: 5px;
  display: none;
  font-weight: 700;
}

.status-indicator { position: relative; display: inline-block; }

.online-dot {
  width: 14px; height: 14px;
  background-color: #10B981;
  border: 2px solid white;
  border-radius: 50%;
  position: absolute;
  bottom: 5px; right: 5px;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  z-index: 10;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

.offline-dot {
  width: 14px; height: 14px;
  background-color: #94A3B8;
  border: 2px solid white;
  border-radius: 50%;
  position: absolute;
  bottom: 5px; right: 5px;
  z-index: 10;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .navbar .container { flex-wrap: wrap; gap: 0.5rem; }
  .nav-links { display: none; flex-wrap: wrap; gap: 0.5rem; width: 100%; padding-top: 0.5rem; }
  .nav-links.open { display: flex; }
  .hero-slider { width: calc(100% - 2rem); margin: 1rem auto; height: 50vh; }
  .slide-content h1 { font-size: 1.75rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .sidebar { width: 240px; }
  .main-content { padding: 1.5rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .section { padding: 3.5rem 0; }
  .section-title { font-size: 1.75rem; }
  .hero-slider { height: 55vw; min-height: 280px; border-radius: var(--radius-lg); }
  .slider-btn { width: 36px; height: 36px; font-size: 1rem; }
}
