/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   ULTRA-PREMIUM MODERN SAAS DASHBOARD â€” ePresensi Jateng
   Vibrant Purple Violet Mesh â€¢ Dark Glassmorphism â€¢ Plus Jakarta Sans
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

:root {
  /* Dark Mode (Default) Design Tokens */
  --bg-main: #0a0b12;
  --bg-card: rgba(18, 20, 32, 0.72);
  --bg-card-hover: rgba(24, 27, 42, 0.82);
  --bg-input: rgba(13, 15, 26, 0.85);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(168, 85, 247, 0.35);
  --glass-blur: blur(20px);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Brand Accent: Rich Violet / Indigo */
  --purple-400: #c084fc;
  --purple-500: #a855f7;
  --purple-600: #9333ea;
  --indigo-500: #6366f1;
  --indigo-600: #4f46e5;
  --accent-gradient: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
  --accent-glow: rgba(168, 85, 247, 0.35);

  /* Status Colors */
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.25);
  --rose-500: #f43f5e;
  --rose-glow: rgba(244, 63, 94, 0.25);
  --amber-500: #f59e0b;
  --blue-500: #3b82f6;

  /* UI Components: Avatars & Skeletons */
  --avatar-bg: rgba(255, 255, 255, 0.1);
  --skeleton-base: rgba(255, 255, 255, 0.05);
  --skeleton-highlight: rgba(255, 255, 255, 0.1);

  /* Geometry */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Shadows */
  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border-glass);
  --shadow-glow: 0 0 25px rgba(168, 85, 247, 0.25);
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* â”€â”€â”€ Light Mode Theme System â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
[data-theme="light"] {
  --bg-main: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: #ffffff;
  --bg-input: #ffffff;
  --border-glass: rgba(0, 0, 0, 0.08);
  --border-glass-hover: rgba(147, 51, 234, 0.4);
  --glass-blur: blur(16px);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --shadow-card: 0 10px 25px -3px rgba(0, 0, 0, 0.07), 0 0 0 1px rgba(0, 0, 0, 0.06);
  --shadow-glow: 0 0 25px rgba(168, 85, 247, 0.15);
}

[data-theme="light"] body {
  background-color: var(--bg-main) !important;
  color: var(--text-primary) !important;
}

[data-theme="light"] .dashboard-sidebar {
  background: rgba(255, 255, 255, 0.96) !important;
  border-right-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .main-topbar {
  background: rgba(248, 250, 252, 0.88) !important;
  border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .glass-card,
[data-theme="light"] .metric-card {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .w-time,
[data-theme="light"] .bot-status-mini,
[data-theme="light"] .sidebar-widget {
  background: rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .modern-table th {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .modern-table td {
  border-bottom-color: rgba(0, 0, 0, 0.04) !important;
  color: #1e293b !important;
}

[data-theme="light"] .modern-table tr:hover {
  background: rgba(241, 245, 249, 0.7) !important;
}

[data-theme="light"] .custom-input,
[data-theme="light"] .custom-select {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .teacher-link {
  color: #0f172a !important;
}

[data-theme="light"] .sidebar-menu .nav-item {
  color: #475569 !important;
}

[data-theme="light"] .sidebar-menu .nav-item:hover {
  background: rgba(0, 0, 0, 0.04) !important;
  color: #0f172a !important;
}

[data-theme="light"] .sidebar-menu .nav-item.active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(99, 102, 241, 0.15)) !important;
  border-color: rgba(168, 85, 247, 0.4) !important;
  color: var(--purple-600) !important;
}

[data-theme="light"] .status-pill {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #334155 !important;
}

[data-theme="light"] .progress-section {
  background: rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .progress-track {
  background: rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .modal-dialog {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .modal-title {
  color: #0f172a !important;
}

[data-theme="light"] .modal-subtitle {
  color: #64748b !important;
}

[data-theme="light"] .modal-close-btn {
  color: #64748b !important;
}

[data-theme="light"] .modal-close-btn:hover {
  color: #0f172a !important;
}

[data-theme="light"] .stat-pill {
  background: rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .stat-pill strong {
  color: #0f172a !important;
}

[data-theme="light"] .stat-pill-success strong {
  color: var(--emerald-500) !important;
}

[data-theme="light"] .stat-pill-danger strong {
  color: var(--rose-500) !important;
}

[data-theme="light"] .info-alert {
  background: rgba(147, 51, 234, 0.06) !important;
  border-color: rgba(147, 51, 234, 0.2) !important;
  color: #334155 !important;
}

[data-theme="light"] .info-alert code {
  background: rgba(0, 0, 0, 0.06) !important;
  color: var(--purple-600) !important;
}

/* Base Reset & Global Sleek Scrollbar */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  scrollbar-width: thin;
  scrollbar-color: rgba(168, 85, 247, 0.25) transparent;
}

/* â”€â”€â”€ Ultra-Sleek Modern Custom Scrollbar (Eliminate Clunky Native Scrollbars) â”€ */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.25);
  border-radius: 9999px;
  transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(168, 85, 247, 0.65);
}

::-webkit-scrollbar-corner {
  background: transparent;
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: rgba(147, 51, 234, 0.45);
}

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Background Glows */
.ambient-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
}

.glow-1 {
  top: -150px;
  left: 10%;
  background: radial-gradient(circle, var(--purple-600), transparent 70%);
}

.glow-2 {
  bottom: -150px;
  right: 10%;
  background: radial-gradient(circle, var(--indigo-600), transparent 70%);
}

/* Utilities */
.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-purple { color: var(--purple-500); }
.text-muted  { color: var(--text-secondary); }
.font-mono   { font-family: var(--font-mono); }
.font-semibold { font-weight: 600; }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }
.cursor-pointer { cursor: pointer; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }

/* â”€â”€â”€ Dashboard Root Layout (Left Sidebar + Main Content) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.dashboard-root {
  display: flex;
  min-height: 100vh;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* â”€â”€â”€ Mobile & Drawer Backdrop â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sidebar-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  z-index: 95;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.dashboard-root.sidebar-collapsed .dashboard-sidebar {
  width: 64px;
  padding: 20px 10px 16px;
}

.dashboard-root.sidebar-collapsed .dashboard-sidebar:hover {
  width: 230px;
  padding: 20px 14px 16px;
  box-shadow: 12px 0 40px rgba(0,0,0,0.8), 0 0 30px rgba(168,85,247,0.2);
}

.dashboard-root.sidebar-collapsed .dashboard-main {
  margin-left: 64px;
}

.dashboard-root.sidebar-collapsed .nav-text,
.dashboard-root.sidebar-collapsed .brand-info,
.dashboard-root.sidebar-collapsed .menu-label,
.dashboard-root.sidebar-collapsed .sidebar-sched-mini,
.dashboard-root.sidebar-collapsed .sidebar-user-info {
  display: none;
}

.dashboard-root.sidebar-collapsed .dashboard-sidebar:hover .nav-text,
.dashboard-root.sidebar-collapsed .dashboard-sidebar:hover .brand-info,
.dashboard-root.sidebar-collapsed .dashboard-sidebar:hover .menu-label,
.dashboard-root.sidebar-collapsed .dashboard-sidebar:hover .sidebar-sched-mini,
.dashboard-root.sidebar-collapsed .dashboard-sidebar:hover .sidebar-user-info {
  display: block;
}

.dashboard-root.sidebar-collapsed .sidebar-user-card { padding: 8px; justify-content: center; }
.dashboard-root.sidebar-collapsed .sidebar-brand { padding-bottom: 12px; justify-content: center; }
.dashboard-root.sidebar-collapsed .nav-item { justify-content: center; padding: 10px; }
.dashboard-root.sidebar-collapsed .nav-item.active::before { display: none; }

.dashboard-root.sidebar-collapsed .dashboard-sidebar:hover .sidebar-menu .nav-item {
  justify-content: flex-start;
  padding: 9px 10px;
}

/* â”€â”€â”€ Left Sidebar (With Smooth Collapsible Auto-Hide) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.dashboard-sidebar {
  width: 230px;
  background: #0d0f1a;
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; bottom: 0; left: 0;
  z-index: 100;
  padding: 20px 14px 16px;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 4px 0 30px rgba(0,0,0,0.5);
  transition: width 0.3s cubic-bezier(0.16,1,0.3,1), transform 0.3s cubic-bezier(0.16,1,0.3,1);
}

}

/* â”€â”€â”€ Animated Hamburger Button â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hamburger-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: var(--transition);
  flex-shrink: 0;
}

.hamburger-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--purple-400);
  transform: translateY(-1px);
}

.hamburger-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all 0.25s ease;
}

[data-theme="light"] .hamburger-btn {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .hamburger-btn span {
  background-color: #0f172a !important;
}

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

/* Brand Header */
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 20px;
}

.sidebar-brand .brand-logo {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px var(--accent-glow);
  flex-shrink: 0;
}

.sidebar-brand .brand-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.sidebar-brand .brand-subtitle {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--purple-400);
}

/* Sidebar Menu */
.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
  flex: 1;
}

.menu-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0 12px 6px;
}

.sidebar-menu .nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}

.sidebar-menu .nav-item:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateX(3px);
}

.sidebar-menu .nav-item.active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.22), rgba(99, 102, 241, 0.22));
  border-color: rgba(168, 85, 247, 0.5);
  color: #fff;
  box-shadow: 0 4px 18px rgba(168, 85, 247, 0.2);
  font-weight: 700;
}

.sidebar-menu .nav-icon {
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
}

/* Sidebar Widget */
.sidebar-widget {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 16px;
}

.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.widget-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.widget-date {
  font-size: 0.72rem;
  color: var(--purple-400);
}

.widget-main {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.widget-times {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.w-time {
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  border: 1px solid var(--border-glass);
}

.w-time-lbl {
  display: block;
  font-size: 0.6rem;
  color: var(--text-muted);
  font-weight: 700;
}

.w-time-val {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Sidebar Footer */
.sidebar-footer {
  border-top: 1px solid var(--border-glass);
  padding-top: 14px;
}

.bot-status-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.2);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
}

.bot-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple-400);
  box-shadow: 0 0 8px var(--purple-500);
  animation: pulseDot 2s infinite;
}

.bot-txt {
  display: flex;
  flex-direction: column;
}

/* â”€â”€â”€ Main Content Workspace â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.dashboard-main {
  flex: 1;
  margin-left: 230px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Main Topbar */
.main-topbar {
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-glass);
  background: rgba(10, 11, 20, 0.75);
  backdrop-filter: var(--glass-blur);
  position: sticky;
  top: 0;
  z-index: 50;
}

.sidebar-toggle-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-size: 1.3rem;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.topbar-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

.topbar-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.main-body-container {
  padding: 28px 32px 60px;
  width: 100%;
}

/* â”€â”€â”€ Metric Cards Grid â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

.metric-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.metric-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-glass-hover);
  box-shadow: var(--shadow-glow);
}

.metric-card-highlight::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent-gradient);
}

.metric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.metric-icon {
  font-size: 1.25rem;
}

.metric-value {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 4px;
}

.metric-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Glass Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Panel Header */
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  gap: 16px;
  flex-wrap: wrap;
}

.panel-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.panel-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* â”€â”€â”€ Progress Bar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.progress-section {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-glass);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: var(--radius-pill);
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* â”€â”€â”€ Filter Toolbar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.filter-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.pill-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.pill-btn.active {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.3);
}

.pill-btn.pill-danger.active {
  background: rgba(244, 63, 94, 0.18);
  color: var(--rose-500);
  border-color: var(--rose-500);
}

.pill-btn.pill-success.active {
  background: rgba(16, 185, 129, 0.18);
  color: var(--emerald-500);
  border-color: var(--emerald-500);
}

.filter-inputs {
  display: flex;
  gap: 10px;
  flex: 1;
  justify-content: flex-end;
  min-width: 200px;
}

.search-input-box {
  position: relative;
  flex: 1;
  max-width: 360px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input-box input {
  padding-left: 36px !important;
}

.date-select-box {
  width: 170px;
}

/* â”€â”€â”€ Date Strip Section (full width row above filter pills) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.date-strip-section {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 8px;
  padding: 10px 0 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 10px;
  width: 100%;
  min-width: 0;
  overflow: visible;
}

.date-strip-label {
  flex: 0 0 auto;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--purple-400, #c084fc);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  writing-mode: horizontal-tb;
}

.date-strip-container {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
  /* NEVER hidden - must overflow-x scroll */
  overflow: visible;
}

[data-theme="light"] .date-strip-section {
  border-bottom-color: rgba(0, 0, 0, 0.07);
}
[data-theme="light"] .date-strip-label {
  color: #7c3aed;
}


/* â”€â”€â”€ Modern Tables â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.table-container {
  max-height: 520px;
  overflow-x: auto;
  overflow-y: auto;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  background: rgba(11, 12, 17, 0.45);
  -webkit-overflow-scrolling: touch;
}

[data-theme="light"] .table-container {
  background: rgba(255, 255, 255, 0.6);
}

.table-container::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

.table-container::-webkit-scrollbar-track {
  background: transparent;
}

.table-container::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.25);
  border-radius: 9999px;
}

.table-container::-webkit-scrollbar-thumb:hover {
  background: rgba(168, 85, 247, 0.65);
}

.modern-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.modern-table th {
  position: sticky;
  top: 0;
  background: #141723;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-glass);
  z-index: 2;
  text-align: left;
}

.modern-table td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  vertical-align: middle;
}

.modern-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.table-empty {
  text-align: center;
  padding: 48px 16px !important;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.loading-spinner {
  width: 24px;
  height: 24px;
  border: 2.5px solid rgba(168, 85, 247, 0.2);
  border-top-color: var(--purple-500);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.teacher-link {
  color: var(--text-primary);
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
}

.teacher-link strong {
  font-weight: 600;
  display: block;
}

.teacher-link:hover strong {
  color: var(--purple-500);
}

.teacher-link small {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--purple-500);
  opacity: 0.85;
}

.table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  gap: 12px;
  flex-wrap: wrap;
}

/* â”€â”€â”€ Avatar Inisial Berwarna â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.teacher-avatar-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.teacher-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.76rem;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

/* â”€â”€â”€ SVG Donut Chart Metric â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.metric-donut-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.donut-chart-svg {
  width: 46px;
  height: 46px;
  transform: rotate(-90deg);
}

.donut-bg {
  stroke: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .donut-bg {
  stroke: rgba(0, 0, 0, 0.08);
}

.donut-progress {
  stroke: var(--purple-400);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s ease;
  filter: drop-shadow(0 0 6px var(--purple-500));
}

/* â”€â”€â”€ Shimmer Skeleton Loading â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.skeleton-box {
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.09) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: shimmerAnim 1.4s infinite;
  border-radius: var(--radius-sm);
  display: inline-block;
}

[data-theme="light"] .skeleton-box {
  background: linear-gradient(90deg, rgba(0,0,0,0.04) 25%, rgba(0,0,0,0.09) 50%, rgba(0,0,0,0.04) 75%);
  background-size: 200% 100%;
}

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

/* â”€â”€â”€ Floating Batch Action Bar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.floating-batch-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(20, 23, 36, 0.95);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glass-hover);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.6), 0 0 25px rgba(168,85,247,0.25);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .floating-batch-bar {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 40px rgba(0,0,0,0.15), 0 0 25px rgba(168,85,247,0.15);
}

.floating-batch-bar.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.batch-count-tag {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--purple-400);
}

/* â”€â”€â”€ Theme Switcher Toggle Button â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.theme-toggle-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--purple-400);
  transform: translateY(-1px);
}

.teacher-select-cb {
  width: 16px;
  height: 16px;
  accent-color: var(--purple-500);
  cursor: pointer;
}

/* â”€â”€â”€ Status Badges â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-status-hadir {
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald-500);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-status-belum {
  background: rgba(244, 63, 94, 0.12);
  color: var(--rose-500);
  border: 1px solid rgba(244, 63, 94, 0.25);
}

.badge-status-libur {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-glass);
}

.badge-status-izin {
  background: rgba(245, 158, 11, 0.12);
  color: var(--amber-500);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.badge-status-sakit {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.badge-status-terlambat {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.4);
  animation: pulse-yellow 2s ease-in-out infinite;
}

@keyframes pulse-yellow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251,191,36,0); }
  50%       { box-shadow: 0 0 6px 2px rgba(251,191,36,0.25); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}


.modern-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.modern-btn:active {
  transform: scale(0.98);
}

.btn-purple {
  background: var(--purple-600);
  color: #fff;
  box-shadow: 0 4px 14px rgba(147, 51, 234, 0.35);
}

.btn-purple:hover {
  background: var(--purple-500);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.45);
}

.btn-purple-gradient {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-purple-gradient:hover {
  opacity: 0.95;
  box-shadow: 0 6px 24px rgba(168, 85, 247, 0.5);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-glass);
  color: var(--text-primary);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Badge jumlah penerima di tombol scheduler */
.btn-recipient-badge {
  display: inline-block;
  background: rgba(139, 92, 246, 0.35);
  border: 1px solid rgba(139, 92, 246, 0.5);
  color: #c4b5fd;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 4px;
  line-height: 1.4;
  letter-spacing: 0.03em;
}

.btn-ghost {
  background: transparent;
  color: var(--purple-500);
}

.btn-ghost:hover {
  background: rgba(168, 85, 247, 0.1);
}

.btn-danger-ghost {
  background: transparent;
  color: var(--rose-500);
}

.btn-danger-ghost:hover {
  background: rgba(244, 63, 94, 0.1);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 7px 12px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.btn-xs {
  padding: 5px 10px;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
}

.btn-double-text {
  text-align: left;
  flex: 1;
}

.btn-double-text strong {
  display: block;
  font-size: 0.85rem;
}

.btn-double-text small {
  display: block;
  font-size: 0.72rem;
  opacity: 0.8;
  font-weight: 400;
}

/* â”€â”€â”€ Right Sidebar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sidebar-area {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  padding: 22px;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.card-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.badge-tag {
  background: rgba(168, 85, 247, 0.1);
  color: var(--purple-500);
  border: 1px solid rgba(168, 85, 247, 0.25);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
}

.status-badge {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-glass);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
}

.status-badge.active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-500);
  border-color: rgba(16, 185, 129, 0.3);
}

.personal-status-box {
  background: rgba(11, 12, 17, 0.6);
  border: 1px solid var(--border-glass);
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}

.status-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.status-main {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 2px 0 12px;
}

.time-chips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.time-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
}

.time-chip-label {
  display: block;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.time-chip-val {
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.action-buttons-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* â”€â”€â”€ Forms & Inputs â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.modern-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.modern-form .form-grid-small {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 320px;
}

.form-item {
  margin-bottom: 16px;
}

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

.custom-input, .custom-textarea, .custom-select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 11px 14px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.custom-input:focus, .custom-textarea:focus, .custom-select:focus {
  border-color: var(--purple-500);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.form-hint {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 5px;
}

.form-divider {
  height: 1px;
  background: var(--border-glass);
  margin: 22px 0;
}

.form-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.form-action-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.feedback-text {
  font-size: 0.8rem;
}

/* Custom Switch */
.checkbox-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.custom-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.custom-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  transition: 0.3s;
  cursor: pointer;
  border: 1px solid var(--border-glass);
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background-color: #fff;
  border-radius: 50%;
  transition: 0.3s;
}

.custom-switch input:checked + .switch-slider {
  background: var(--accent-gradient);
  border-color: transparent;
}

.custom-switch input:checked + .switch-slider:before {
  transform: translateX(20px);
}

.switch-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
}

/* Info Alert */
.info-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.2);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 0.825rem;
}

.alert-icon { font-size: 1.2rem; }
.info-alert code {
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  color: var(--purple-500);
}

/* WhatsApp Bubble Preview */
.preview-container {
  background: rgba(11, 12, 17, 0.6);
  border: 1px solid var(--border-glass);
  padding: 18px;
  border-radius: var(--radius-md);
  margin-top: 14px;
}

.preview-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.whatsapp-card {
  background: #005c4b;
  color: #e9edef;
  padding: 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  line-height: 1.5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Logs Feed */
.logs-feed {
  max-height: 480px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.log-row {
  background: rgba(11, 12, 17, 0.5);
  border: 1px solid var(--border-glass);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.log-row-clickable {
  cursor: pointer;
  position: relative;
}

.log-row-clickable:hover {
  background: rgba(168, 85, 247, 0.09);
  border-color: rgba(168, 85, 247, 0.35);
  transform: translateY(-1.5px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .log-row {
  background: rgba(255, 255, 255, 0.7);
}

[data-theme="light"] .log-row-clickable:hover {
  background: rgba(147, 51, 234, 0.08);
  border-color: rgba(147, 51, 234, 0.3);
}

.log-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.log-msg-text {
  word-break: break-word;
  font-weight: 500;
  line-height: 1.45;
}

.log-row-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.log-view-btn {
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(168, 85, 247, 0.15);
  color: var(--purple-400);
  border: 1px solid rgba(168, 85, 247, 0.3);
  transition: all 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
  outline: none;
}

.log-view-btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border-color: var(--border-glass);
}

.log-row-clickable:hover .log-view-btn {
  background: var(--purple-600);
  color: #ffffff;
  border-color: var(--purple-500);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.log-time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.empty-feed {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 0;
  font-size: 0.85rem;
}

/* â”€â”€â”€ Modals â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

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

.modal-dialog {
  background: #141724;
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  animation: modalScale 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-dialog-sm { max-width: 440px; }

.modal-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-glass);
}

.modal-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--purple-400);
  letter-spacing: 0.08em;
}

.modal-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 2px;
}

.modal-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 8px;
  line-height: 1;
  transition: var(--transition);
}

.modal-close-btn:hover { color: #fff; }

.modal-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.stat-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  text-align: center;
}

.stat-pill span { display: block; font-size: 0.68rem; font-family: var(--font-mono); color: var(--text-muted); }
.stat-pill strong { font-size: 1.2rem; font-weight: 800; color: var(--text-primary); }
.stat-pill-success strong { color: var(--emerald-400) !important; }
.stat-pill-danger strong { color: var(--rose-500) !important; }

.modal-table-container {
  max-height: 360px;
  overflow-y: auto;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  background: rgba(11, 12, 17, 0.4);
}

.modal-table-container table.modern-table th {
  background: #181c2d;
  color: var(--text-secondary);
}

[data-theme="light"] .modal-table-container {
  background: #ffffff;
}

[data-theme="light"] .modal-table-container table.modern-table th {
  background: #f1f5f9 !important;
  color: #475569 !important;
}

.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
}

/* Toast */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #141724;
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  border-left: 4px solid var(--purple-500);
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* â”€â”€â”€ Gatekeeper Access Screen (Landing) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.gatekeeper-screen {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% 30%, rgba(147, 51, 234, 0.18), transparent 70%), var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
}

.gatekeeper-box {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 40px 32px 32px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(168, 85, 247, 0.15);
  animation: modalScale 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gatekeeper-logo {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 8px 24px var(--accent-glow);
}

.gatekeeper-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--purple-500);
  margin-bottom: 4px;
}

.gatekeeper-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.gatekeeper-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrap input {
  padding-right: 44px !important;
}

.btn-toggle-eye {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text-muted);
  padding: 4px 6px;
  border-radius: 4px;
  transition: var(--transition);
}

.btn-toggle-eye:hover {
  color: var(--text-primary);
}

.feedback-error {
  color: var(--rose-500);
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 8px;
  min-height: 20px;
}

.gatekeeper-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-glass);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.text-left { text-align: left; }
.mr-1 { margin-right: 4px; }

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   RESPONSIVE BREAKPOINTS (PERFECT ON ALL DEVICES)
â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

@media (max-width: 1140px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* â”€â”€â”€ Responsive Adjustments â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 1200px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

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

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

  .sidebar-toggle-btn {
    display: inline-flex;
    margin-right: 12px;
  }

  .main-topbar {
    padding: 14px 20px;
  }

  .main-body-container {
    padding: 20px 18px 50px;
  }
}

@media (max-width: 640px) {
  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .main-topbar {
    padding: 12px 14px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .topbar-title {
    font-size: 1.1rem;
  }

  .main-body-container {
    padding: 16px 12px 40px;
  }

  .glass-card {
    padding: 18px 14px;
  }

  .modern-form .form-grid {
    grid-template-columns: 1fr;
  }

  .filter-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-inputs {
    flex-direction: column;
    min-width: 100%;
  }

  .search-input-box {
    max-width: 100%;
  }

  .date-select-box {
    width: 100%;
  }

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

  .toast-notification {
    left: 14px;
    right: 14px;
    bottom: 16px;
  }
}

/* â”€â”€â”€ Graphify Knowledge Graph UI Styles â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.graph-view-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.graph-view-btn:hover {
  color: var(--text-primary);
}

.graph-view-btn.active {
  background: var(--purple-600);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(168, 85, 247, 0.4);
}

[data-theme="light"] .graph-frame-container {
  background: #ffffff !important;
}

[data-theme="light"] .graph-view-switcher {
  background: rgba(0, 0, 0, 0.05) !important;
}

/* â”€â”€â”€ Multi-School Switcher & Accounts UI â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.school-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.35);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.school-switcher-btn:hover {
  background: rgba(168, 85, 247, 0.25);
  border-color: var(--purple-500);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.35);
  transform: translateY(-1px);
}

.school-btn-icon {
  font-size: 0.95rem;
}

.school-btn-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--purple-300);
  letter-spacing: 0.3px;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.school-btn-badge {
  font-size: 0.68rem;
  background: var(--purple-600);
  color: #ffffff;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.saved-accounts-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 240px;
  overflow-y: auto;
}

.school-account-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: all 0.2s ease;
}

.school-account-card:hover {
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.school-account-card.active-card {
  border-color: var(--emerald-500);
  background: rgba(16, 185, 129, 0.08);
}

.school-acc-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.school-acc-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.school-acc-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.school-acc-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.school-acc-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

[data-theme="light"] .school-account-card {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="light"] .school-account-card.active-card {
  background: #ecfdf5;
  border-color: #10b981;
}

[data-theme="light"] .school-btn-label {
  color: var(--purple-700);
}

/* â”€â”€â”€ 1-Month Analytics & Daily Chart Card â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.monthly-analytics-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  margin-bottom: 24px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.monthly-analytics-card:hover {
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.analytics-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.analytics-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.analytics-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.analytics-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.analytics-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Stat Box Grid */
.analytics-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.analytics-stat-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
}

.analytics-stat-box:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.05);
}

.stat-box-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-box-lbl {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-box-body {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.stat-box-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
}

.stat-box-pct {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

/* Stat Box Color Themes */
.stat-box-hadir {
  border-color: rgba(16, 185, 129, 0.25);
}
.stat-box-hadir .stat-box-pct {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-400);
}

.stat-box-belum {
  border-color: rgba(244, 63, 94, 0.25);
}
.stat-box-belum .stat-box-pct {
  background: rgba(244, 63, 94, 0.15);
  color: var(--rose-400);
}

.stat-box-izin {
  border-color: rgba(245, 158, 11, 0.25);
}
.stat-box-izin .stat-box-pct {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.stat-box-sakit {
  border-color: rgba(14, 165, 233, 0.25);
}
.stat-box-sakit .stat-box-pct {
  background: rgba(14, 165, 233, 0.15);
  color: #0ea5e9;
}

/* Legend Row */
.chart-legend-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

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

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}

.dot-hadir { background: #10b981; }
.dot-belum { background: #f43f5e; }
.dot-izin  { background: #f59e0b; }
.dot-sakit { background: #0ea5e9; }
.dot-libur { background: rgba(255, 255, 255, 0.2); }

.legend-hint {
  margin-left: auto;
}

/* Daily Chart Bars */
.daily-chart-scroll-wrap {
  width: 100%;
  overflow-x: auto;
  padding: 10px 4px 6px;
}

.daily-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  min-width: 640px;
  height: 130px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 8px;
}

.day-bar-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  cursor: pointer;
  border-radius: 6px;
  padding: 4px 2px;
  transition: all 0.18s ease;
  position: relative;
}

.day-bar-column:hover,
.day-bar-column.selected-day {
  background: rgba(168, 85, 247, 0.15);
}

.day-bar-column.is-today-col {
  border: 1px dashed rgba(168, 85, 247, 0.5);
  background: rgba(168, 85, 247, 0.08);
}

.day-bar-track {
  flex: 1;
  width: 12px;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column-reverse;
  background: rgba(255, 255, 255, 0.06);
  position: relative;
}

.seg-hadir { background: #10b981; width: 100%; transition: height 0.3s ease; }
.seg-belum { background: #f43f5e; width: 100%; transition: height 0.3s ease; }
.seg-izin  { background: #f59e0b; width: 100%; transition: height 0.3s ease; }
.seg-sakit { background: #0ea5e9; width: 100%; transition: height 0.3s ease; }
.seg-libur { background: rgba(255, 255, 255, 0.18); width: 100%; transition: height 0.3s ease; }

.day-bar-label {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 600;
}

.day-bar-dayname {
  font-size: 0.6rem;
  color: var(--text-muted);
}

/* Active Day Detail Popup Bar */
.active-day-popup {
  margin-top: 14px;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  animation: fadeIn 0.2s ease-out;
}

.popup-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.popup-date {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.popup-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.popup-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mini-stat-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.mini-badge-hadir { background: rgba(16, 185, 129, 0.15); color: var(--emerald-400); }
.mini-badge-belum { background: rgba(244, 63, 94, 0.15); color: var(--rose-400); }
.mini-badge-izin  { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.mini-badge-sakit { background: rgba(14, 165, 233, 0.15); color: #0ea5e9; }
.mini-badge-libur { background: rgba(255, 255, 255, 0.1); color: var(--text-muted); }

/* Filter Pill Colors */
.pill-warning {
  border-color: rgba(245, 158, 11, 0.3) !important;
  color: #f59e0b !important;
}
.pill-warning.active, .pill-warning:hover {
  background: rgba(245, 158, 11, 0.18) !important;
  border-color: #f59e0b !important;
}

.pill-info {
  border-color: rgba(14, 165, 233, 0.3) !important;
  color: #0ea5e9 !important;
}
.pill-info.active, .pill-info:hover {
  background: rgba(14, 165, 233, 0.18) !important;
  border-color: #0ea5e9 !important;
}

/* Light Theme overrides for Monthly Analytics */
[data-theme="light"] .monthly-analytics-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .analytics-stat-box {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="light"] .dot-libur {
  background: #cbd5e1;
}

[data-theme="light"] .day-bar-track {
  background: #f1f5f9;
}

[data-theme="light"] .seg-libur {
  background: #cbd5e1;
}

[data-theme="light"] .active-day-popup {
  background: #faf5ff;
  border-color: #e9d5ff;
}

/* â”€â”€â”€ Modern Modal System (Overlay & Animations) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 20, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 16px;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-dialog {
  background: #151322;
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--radius-lg, 16px);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 50px rgba(168, 85, 247, 0.2);
  transform: scale(0.94) translateY(16px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: #f8fafc;
  position: relative;
}

.modal-overlay.show .modal-dialog {
  transform: scale(1) translateY(0);
}

.modal-dialog-sm {
  max-width: 450px;
}

.modal-dialog-md {
  max-width: 590px;
}

.modal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.modal-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--purple-400, #c084fc);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-top: 2px;
}

.modal-subtitle {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 4px;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.5rem;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.modal-close-btn:hover {
  color: #ffffff;
  background: rgba(244, 63, 94, 0.2);
  border-color: rgba(244, 63, 94, 0.4);
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.modal-table-container {
  max-height: 340px;
  overflow-y: auto;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
}

/* â”€â”€â”€ Modern Horizontal Date Strip â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
/* .date-strip-container (new) is the main flex row inside .date-strip-section */
.date-strip-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}


.date-strip-arrow {
  flex: 0 0 auto;
  width: 30px;
  height: 40px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 8px;
  color: var(--purple-400, #c084fc);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  padding: 0;
  line-height: 1;
  user-select: none;
}
.date-strip-arrow:hover {
  background: rgba(168, 85, 247, 0.22);
  border-color: rgba(168, 85, 247, 0.5);
  color: #ffffff;
}

.date-strip-scroll {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 4px;
  overflow-x: auto !important;
  overflow-y: visible !important;
  flex: 1 1 auto;
  scroll-behavior: smooth;
  padding: 2px 0 6px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.date-strip-scroll::-webkit-scrollbar { display: none; }

.date-pill {
  flex: 0 0 44px !important;
  min-width: 44px !important;
  width: 44px !important;
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1px;
  height: 54px;
  padding: 4px 2px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  box-sizing: border-box;
}
.date-pill:hover {
  background: rgba(168, 85, 247, 0.14);
  border-color: rgba(168, 85, 247, 0.35);
}
.date-pill.is-weekend {
  background: rgba(255, 255, 255, 0.02);
  opacity: 0.55;
}
.date-pill.is-today {
  border-color: rgba(168, 85, 247, 0.5);
  background: rgba(168, 85, 247, 0.1);
}
.date-pill.is-active {
  background: linear-gradient(135deg, #7c3aed, #a855f7) !important;
  border-color: #a855f7 !important;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.5);
  opacity: 1 !important;
}
.date-pill.is-active .dp-day,
.date-pill.is-active .dp-num {
  color: #ffffff !important;
}
.dp-day {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-muted, #64748b);
  text-transform: uppercase;
  line-height: 1;
}
.dp-num {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary, #f8fafc);
  line-height: 1.1;
}
.date-pill.is-today .dp-day { color: #c084fc; }
.date-pill.is-today .dp-num { color: #e9d5ff; }
.date-pill.is-weekend .dp-num { color: var(--text-muted, #64748b); }

/* dot indicator when has data (hadir) */
.dp-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10b981;
  margin-top: 1px;
  opacity: 0;
  transition: opacity 0.2s;
}
.date-pill.has-hadir .dp-dot { opacity: 1; }

/* Light Theme overrides */
[data-theme="light"] .date-strip-arrow {
  background: rgba(124, 58, 237, 0.07);
  border-color: rgba(124, 58, 237, 0.2);
  color: #7c3aed;
}
[data-theme="light"] .date-pill {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .date-pill:hover {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.3);
}
[data-theme="light"] .dp-day { color: #94a3b8; }
[data-theme="light"] .dp-num { color: #1e293b; }
[data-theme="light"] .date-pill.is-today { border-color: #7c3aed; background: rgba(124, 58, 237, 0.07); }
[data-theme="light"] .date-pill.is-today .dp-day { color: #7c3aed; }
[data-theme="light"] .date-pill.is-today .dp-num { color: #4c1d95; }
[data-theme="light"] .date-pill.is-weekend { opacity: 0.45; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   KALENDER JADWAL â€” Calendar Component
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 6px;
}
.cal-weekdays span {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  padding: 6px 0;
  text-transform: uppercase;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-cell {
  aspect-ratio: 1;
  border-radius: 10px;
  cursor: pointer;
  padding: 6px 4px 4px;
  border: 1.5px solid transparent;
  background: rgba(255,255,255,0.03);
  transition: all 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-height: 60px;
  position: relative;
}
.cal-cell:hover {
  background: rgba(168,85,247,0.12);
  border-color: rgba(168,85,247,0.35);
  transform: translateY(-1px);
}
.cal-cell.is-today {
  background: rgba(168,85,247,0.18);
  border-color: #a855f7;
}
.cal-cell.is-today .cal-num { color: #c084fc; font-weight: 800; }
.cal-cell.is-selected {
  background: linear-gradient(135deg, rgba(168,85,247,0.3), rgba(99,102,241,0.3));
  border-color: #a855f7;
  box-shadow: 0 0 0 2px rgba(168,85,247,0.35);
}
.cal-cell.is-weekend { opacity: 0.55; }
.cal-cell.is-sabtu { opacity: 1; background: rgba(251,146,60,0.08); border-color: rgba(251,146,60,0.25); }
.cal-cell.is-sabtu .cal-num { color: #fb923c; }
.cal-cell.is-other-month { opacity: 0.25; }
.cal-cell.no-events { cursor: default; }
.cal-num {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}
.cal-dots {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: center;
}
.cal-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: inline-block;
}
.cal-dot-pagi    { background: #34d399; }
.cal-dot-siang   { background: #facc15; }
.cal-dot-pulang  { background: #f87171; }
.cal-dot-rekap   { background: #fb923c; }
.cal-dot-archiver { background: #60a5fa; }

/* Detail Panel */
.cal-detail-panel {
  background: var(--bg-card);
  border: 1.5px solid var(--border-glass);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: var(--glass-blur);
  position: sticky;
  top: 80px;
  height: fit-content;
}
.cal-detail-date {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.cal-detail-day {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cal-section-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}
/* Auto Schedule Items */
.cal-auto-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  margin-bottom: 6px;
  border: 1px solid rgba(255,255,255,0.06);
}
.cal-auto-time {
  font-size: 0.95rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: #a855f7;
  min-width: 42px;
}
.cal-auto-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.cal-auto-badge {
  margin-left: auto;
  font-size: 0.62rem;
  padding: 2px 7px;
  border-radius: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-auto { background: rgba(52,211,153,0.15); color: #34d399; }
.badge-sabtu { background: rgba(251,146,60,0.15); color: #fb923c; }
.badge-libur { background: rgba(100,116,139,0.15); color: #64748b; }

/* Send Buttons */
.cal-send-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  width: 100%;
}
.cal-send-btn:hover:not(:disabled) {
  background: rgba(168,85,247,0.15);
  border-color: rgba(168,85,247,0.4);
  transform: translateX(3px);
}
.cal-send-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.cal-send-btn.sending {
  opacity: 0.6;
  pointer-events: none;
}
.cal-send-icon {
  font-size: 1.3rem;
  min-width: 28px;
  text-align: center;
}
.cal-send-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}
.cal-send-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 1px;
}
.cal-send-rekap {
  border-color: rgba(251,146,60,0.25);
  background: rgba(251,146,60,0.06);
}
.cal-send-rekap:hover:not(:disabled) {
  background: rgba(251,146,60,0.15);
  border-color: rgba(251,146,60,0.5);
}
.cal-send-archiver {
  border-color: rgba(96,165,250,0.25);
  background: rgba(96,165,250,0.06);
}
/* Legend */
.cal-legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.cal-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}
/* Result feedback */
.cal-result-ok {
  background: rgba(52,211,153,0.12);
  border: 1px solid rgba(52,211,153,0.3);
  color: #34d399;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 600;
}
.cal-result-err {
  background: rgba(248,113,113,0.12);
  border: 1px solid rgba(248,113,113,0.3);
  color: #f87171;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 600;
}

/* ───────────────────────────────────────────────────────────────────────────── 
   MODERN SAAS REDESIGN — Sidebar, Topbar, Cards, Timeline
   ─────────────────────────────────────────────────────────────────────────────  */

/* ─── Mobile Sidebar ───────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .dashboard-sidebar { transform: translateX(-100%); width: 240px; }
  .dashboard-sidebar.mobile-open { transform: translateX(0); }
  .dashboard-main { margin-left: 0; }
  .topbar-search { max-width: 180px; }
  .topbar-user-info, .topbar-user-profile > svg { display: none; }
}

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

.brand-logo {
  width: 38px; height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 0 0 2px rgba(139,92,246,0.4);
}

.brand-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.7rem;
  color: #8b5cf6;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.menu-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.25);
  padding: 0 8px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.855rem;
  font-weight: 500;
  width: 100%;
  text-align: left;
  transition: all 0.18s ease;
  position: relative;
}

.nav-item:hover {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
}

.nav-item.active {
  background: rgba(139,92,246,0.18);
  color: #c4b5fd;
  font-weight: 600;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 3px;
  background: #8b5cf6;
  border-radius: 0 3px 3px 0;
}

.nav-icon {
  width: 20px; height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.75;
}

.nav-item.active .nav-icon,
.nav-item:hover .nav-icon { opacity: 1; }

/* Sidebar user card at bottom */
.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  margin-top: 8px;
}

.sidebar-user-avatar {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg,#7c3aed,#4f46e5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.sidebar-sched-mini { padding: 0 2px; }

/* â”€â”€â”€ Topbar Compact SaaS â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.main-topbar {
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(9,11,20,0.9);
  backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 50;
  gap: 16px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.topbar-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}

.topbar-desc {
  font-size: 0.73rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.3;
}

/* Search bar in topbar */
.topbar-search {
  flex: 1;
  max-width: 340px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 8px;
  padding: 8px 14px;
  color: var(--text-muted);
  transition: border-color 0.2s, background 0.2s;
}

.topbar-search:focus-within {
  border-color: rgba(139,92,246,0.5);
  background: rgba(139,92,246,0.06);
}

.topbar-search-input {
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.83rem;
  font-family: inherit;
  outline: none;
  width: 100%;
}

.topbar-search-input::placeholder { color: rgba(255,255,255,0.3); font-size: 0.83rem; }

/* Topbar actions */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Icon buttons in topbar */
.topbar-icon-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s;
  position: relative;
  flex-shrink: 0;
}

.topbar-icon-btn:hover {
  background: rgba(255,255,255,0.09);
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.15);
}

.topbar-notif-btn { }

.topbar-notif-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: #ef4444;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  border-radius: 10px;
  padding: 1px 4px;
  min-width: 16px;
  text-align: center;
  border: 2px solid #090b14;
}

/* User profile in topbar */
.topbar-user-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  transition: all 0.18s;
}

.topbar-user-profile:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
}

.topbar-user-avatar {
  width: 30px; height: 30px;
  border-radius: 7px;
  background: linear-gradient(135deg,#7c3aed,#4f46e5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.topbar-user-info { min-width: 0; }
.topbar-user-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  line-height: 1.2;
}

.topbar-user-role {
  font-size: 0.65rem;
  color: #8b5cf6;
  font-weight: 500;
  line-height: 1;
}

/* â”€â”€â”€ Collapsed Sidebar State â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.dashboard-root.sidebar-collapsed .dashboard-sidebar { width: 64px; padding: 20px 10px 16px; }
.dashboard-root.sidebar-collapsed .dashboard-main    { margin-left: 64px; }
.dashboard-root.sidebar-collapsed .nav-text,
.dashboard-root.sidebar-collapsed .brand-info,
.dashboard-root.sidebar-collapsed .menu-label,
.dashboard-root.sidebar-collapsed .sidebar-sched-mini,
.dashboard-root.sidebar-collapsed .sidebar-user-info { display: none; }
.dashboard-root.sidebar-collapsed .sidebar-user-card { padding: 8px; justify-content: center; }
.dashboard-root.sidebar-collapsed .sidebar-brand { padding-bottom: 12px; justify-content: center; }
.dashboard-root.sidebar-collapsed .nav-item { justify-content: center; padding: 10px; }
.dashboard-root.sidebar-collapsed .nav-item.active::before { display: none; }

/* â”€â”€â”€ Light theme topbar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
[data-theme="light"] .main-topbar {
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
[data-theme="light"] .dashboard-sidebar {
  background: #f9fafb;
  border-right: 1px solid rgba(0,0,0,0.08);
}
[data-theme="light"] .nav-item { color: rgba(0,0,0,0.45); }
[data-theme="light"] .nav-item:hover { background: rgba(0,0,0,0.05); color: rgba(0,0,0,0.8); }
[data-theme="light"] .nav-item.active { background: rgba(139,92,246,0.1); color: #7c3aed; }
[data-theme="light"] .topbar-search { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.1); }
[data-theme="light"] .topbar-icon-btn { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.1); color: rgba(0,0,0,0.5); }
[data-theme="light"] .topbar-user-profile { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.1); }
[data-theme="light"] .sidebar-user-card { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.08); }

/* â”€â”€â”€ Mobile Sidebar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 960px) {
  .dashboard-sidebar { transform: translateX(-100%); width: 240px; }
  .dashboard-sidebar.mobile-open { transform: translateX(0); }
  .dashboard-main { margin-left: 0; }
  .topbar-search { max-width: 180px; }
  .topbar-user-info, .topbar-user-profile > svg { display: none; }
}


/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   KPI CARDS PREMIUM LAYOUT
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.kpi-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

/* â”€â”€ Hero card (Kehadiran) â”€â”€ */
.kpi-hero-card {
  background: linear-gradient(135deg, rgba(139,92,246,0.15) 0%, rgba(79,70,229,0.1) 100%);
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.kpi-hero-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(139,92,246,0.08);
  pointer-events: none;
}

.kpi-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.kpi-hero-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(196,181,253,0.7);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.kpi-hero-value {
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(135deg,#c4b5fd,#818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 4px;
}

.kpi-hero-fraction {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}

.kpi-hero-card .donut-chart-svg {
  width: 64px; height: 64px;
  flex-shrink: 0;
}

/* Progress bar */
.kpi-progress-wrap { display: flex; flex-direction: column; gap: 6px; }
.kpi-progress-bar {
  height: 6px;
  border-radius: 6px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
}
.kpi-progress-fill {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, #8b5cf6, #10b981);
  transition: width 0.8s cubic-bezier(0.16,1,0.3,1);
}
.kpi-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
}

/* Trend badge */
.kpi-trend {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #10b981;
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 20px;
  padding: 3px 10px;
  width: fit-content;
}

/* â”€â”€ Small KPI cards â”€â”€ */
.kpi-card {
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.kpi-card::after {
  content: '';
  position: absolute;
  bottom: -20px; right: -20px;
  width: 70px; height: 70px;
  border-radius: 50%;
  opacity: 0.12;
  pointer-events: none;
}

.kpi-purple {
  background: rgba(139,92,246,0.1);
  border-color: rgba(139,92,246,0.25);
}
.kpi-purple::after { background: #8b5cf6; }

.kpi-green {
  background: rgba(16,185,129,0.1);
  border-color: rgba(16,185,129,0.25);
}
.kpi-green::after { background: #10b981; }

.kpi-blue {
  background: rgba(59,130,246,0.1);
  border-color: rgba(59,130,246,0.25);
}
.kpi-blue::after { background: #3b82f6; }

.kpi-card-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.kpi-purple .kpi-card-icon { background: rgba(139,92,246,0.2); color: #c4b5fd; }
.kpi-green  .kpi-card-icon { background: rgba(16,185,129,0.2);  color: #6ee7b7; }
.kpi-blue   .kpi-card-icon { background: rgba(59,130,246,0.2);  color: #93c5fd; }

.kpi-card-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.kpi-card-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.kpi-card-sub {
  font-size: 0.73rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.kpi-card-action {
  margin-top: auto;
  background: none;
  border: none;
  padding: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: #c4b5fd;
  cursor: pointer;
  text-align: left;
  opacity: 0.75;
  transition: opacity 0.2s;
  font-family: inherit;
}
.kpi-card-action:hover { opacity: 1; }

@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .kpi-grid { grid-template-columns: 1fr; padding: 12px 16px 0; }
}

/* Light theme KPI */
[data-theme="light"] .kpi-hero-card { background: linear-gradient(135deg,rgba(139,92,246,0.08),rgba(79,70,229,0.05)); border-color: rgba(139,92,246,0.2); }
[data-theme="light"] .kpi-hero-value { background: linear-gradient(135deg,#7c3aed,#4f46e5); -webkit-background-clip: text; background-clip: text; }
[data-theme="light"] .kpi-purple { background: rgba(139,92,246,0.06); }
[data-theme="light"] .kpi-green  { background: rgba(16,185,129,0.06); }
[data-theme="light"] .kpi-blue   { background: rgba(59,130,246,0.06); }
[data-theme="light"] .kpi-card-value { color: #111827; }


/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   SUPERADMIN SCHOOL TABLE COMPONENTS
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* School avatar */
.sa-school-avatar {
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg,#7c3aed,#4f46e5);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 700; color: #fff; flex-shrink: 0;
}

/* School table row hover */
.sa-school-row { transition: background 0.15s; }
.sa-school-row:hover { background: rgba(139,92,246,0.05); }

/* Plan badges */
.sa-plan-badge {
  display: inline-block;
  font-size: 0.65rem; font-weight: 800;
  padding: 3px 8px; border-radius: 6px;
  letter-spacing: 0.08em;
}
.sa-plan-pro  { background: rgba(16,185,129,0.15); color: #10b981; border: 1px solid rgba(16,185,129,0.3); }
.sa-plan-free { background: rgba(245,158,11,0.15); color: #f59e0b; border: 1px solid rgba(245,158,11,0.3); }

/* Status dot */
.sa-status-dot {
  width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex-shrink: 0;
}
.sa-status-active   { background: #10b981; box-shadow: 0 0 5px #10b981; }
.sa-status-inactive { background: #ef4444; }

/* Action button â‹® */
.sa-action-btn {
  width: 32px; height: 32px; border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.15s;
}
.sa-action-btn:hover {
  background: rgba(139,92,246,0.15);
  border-color: rgba(139,92,246,0.4);
  color: #c4b5fd;
}

/* Dropdown menu */
.sa-action-dropdown {
  position: absolute;
  right: 0; top: calc(100% + 4px);
  z-index: 200;
  background: #1a1b2e;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 6px;
  min-width: 160px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  animation: dropdownIn 0.15s ease;
}

@keyframes dropdownIn {
  from { opacity:0; transform:translateY(-6px) scale(0.97); }
  to   { opacity:1; transform:translateY(0) scale(1); }
}

.sa-action-item {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 8px 10px;
  border: none; background: transparent;
  color: var(--text-primary); font-size: 0.82rem;
  font-family: inherit; cursor: pointer; border-radius: 6px;
  transition: background 0.12s;
  text-align: left;
}
.sa-action-item:hover { background: rgba(255,255,255,0.07); }
.sa-action-danger { color: #f87171 !important; }
.sa-action-danger:hover { background: rgba(239,68,68,0.12) !important; }

/* Light theme adjustments */
[data-theme="light"] .sa-action-dropdown { background: #fff; border-color: rgba(0,0,0,0.12); box-shadow: 0 8px 30px rgba(0,0,0,0.15); }
[data-theme="light"] .sa-action-item { color: #1f2937; }
[data-theme="light"] .sa-action-btn { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.1); color: rgba(0,0,0,0.5); }

