/*
 * style.css — Waka Kurikulum UI
 * Design: Minimalist Corporate
 * Palette: Green accent, neutral grays
 * No glassmorphism. No decorative gradients. No AI slop.
 */

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Accent */
  --green:       #16a34a;
  --green-dark:  #15803d;
  --green-light: #dcfce7;
  --green-muted: #86efac;

  /* Neutrals */
  --black:   #0f172a;
  --gray-9:  #1e293b;
  --gray-7:  #334155;
  --gray-5:  #64748b;
  --gray-3:  #cbd5e1;
  --gray-2:  #e2e8f0;
  --gray-1:  #f1f5f9;
  --white:   #ffffff;

  /* Semantic */
  --text-primary:   var(--gray-9);
  --text-secondary: var(--gray-5);
  --text-muted:     var(--gray-3);
  --border:         var(--gray-2);
  --surface:        var(--white);
  --bg:             var(--gray-1);

  /* Status */
  --success: #16a34a;
  --warning: #d97706;
  --danger:  #dc2626;
  --info:    #2563eb;

  /* Layout */
  --sidebar-w: 220px;
  --topbar-h:  52px;
  --bottomnav-h: 56px;

  /* Misc */
  --radius: 6px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

html { font-size: 14px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

button { font-family: var(--font); cursor: pointer; }
input, select, textarea { font-family: var(--font); }

.hidden { display: none !important; }


/* ============================================
   LOGIN SCREEN
   ============================================ */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 360px;
}

.login-logo {
  margin-bottom: 32px;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.login-brand-icon {
  width: 32px;
  height: 32px;
  background: var(--green);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
}

.login-brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

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

.login-divider {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 16px;
}

.btn-google-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s, border-color 0.15s;
}
.btn-google-login:hover {
  background: var(--gray-1);
  border-color: var(--gray-3);
}

.login-note {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.4;
}
.login-note i { margin-top: 1px; }

/* Dev Mode Panel */
#dev-login-panel {
  margin-top: 20px;
  padding: 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
}
.dev-panel-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #92400e;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.dev-role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.dev-role-btn {
  padding: 8px 4px;
  border: none;
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}
.dev-role-btn:hover { opacity: 0.85; }
.dev-role-btn.guru   { background: var(--info);    color: white; }
.dev-role-btn.waka   { background: #7c3aed;        color: white; }
.dev-role-btn.kepsek { background: var(--success); color: white; }

.login-error {
  margin-top: 14px;
  padding: 10px 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  font-size: 0.82rem;
  color: var(--danger);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}


/* ============================================
   APP SHELL
   ============================================ */
.app-shell {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.app-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--white);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 16px 16px 14px;
  border-bottom: 1px solid var(--border);
}
.nav-brand-icon {
  width: 28px;
  height: 28px;
  background: var(--green);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 13px;
  flex-shrink: 0;
}
.nav-brand-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.2px;
  line-height: 1.2;
}
.nav-brand-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 400;
}

.nav-section-label {
  padding: 14px 16px 4px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-items { padding: 6px 8px; flex: 1; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background 0.12s, color 0.12s;
  user-select: none;
}
.nav-item i {
  width: 16px;
  font-size: 13px;
  text-align: center;
  flex-shrink: 0;
}
.nav-item:hover { background: var(--gray-1); color: var(--text-primary); }
.nav-item.active {
  background: var(--green-light);
  color: var(--green-dark);
  font-weight: 600;
}
.nav-item.active i { color: var(--green); }

.nav-footer {
  padding: 12px 8px;
  border-top: 1px solid var(--border);
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  margin-bottom: 4px;
  border-radius: var(--radius);
}
.nav-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-user-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-user-role {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.btn-logout {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 10px;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.btn-logout:hover { background: #fef2f2; color: var(--danger); }
.btn-logout i { font-size: 12px; }


/* Main Content */
.main-content {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  width: calc(100% - var(--sidebar-w));
}

.page-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 24px;
}

/* Mobile header */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
  align-items: center;
  justify-content: space-between;
  z-index: 200;
}
.mobile-header-left { display: flex; align-items: center; gap: 10px; }
.mobile-logo-icon {
  width: 26px; height: 26px;
  background: var(--green);
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 12px;
}
.mobile-page-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}
.mobile-user-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* Mobile bottom nav */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--bottomnav-h);
  background: var(--white);
  border-top: 1px solid var(--border);
  z-index: 200;
  flex-direction: row;
  align-items: stretch;
}

.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.12s;
  border: none;
  background: none;
  padding: 6px 0;
}
.mobile-nav-item i { font-size: 16px; }
.mobile-nav-item.active { color: var(--green); }
.mobile-nav-item span { font-size: 0.6rem; }


/* ============================================
   COMMON UI COMPONENTS
   ============================================ */

/* Page header */
.page-header {
  margin-bottom: 20px;
}
.page-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  margin-bottom: 2px;
}
.page-header p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* Card */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 7px;
}
.card-title i { color: var(--text-muted); font-size: 13px; }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}
.badge-success { background: var(--green-light);  color: var(--green-dark); }
.badge-warning { background: #fef3c7;             color: #92400e; }
.badge-danger  { background: #fef2f2;             color: var(--danger); }
.badge-info    { background: #eff6ff;             color: #1d4ed8; }
.badge-muted   { background: var(--gray-1);       color: var(--gray-5); }
.badge-primary { background: var(--green-light);  color: var(--green-dark); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); }

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}
.btn-outline:hover { background: var(--gray-1); border-color: var(--gray-3); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--gray-1); }

.btn-danger {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
}
.btn-success {
  background: var(--success);
  color: white;
  border-color: var(--success);
}

.btn-full { width: 100%; justify-content: center; }
.btn-lg   { padding: 10px 18px; font-size: 0.875rem; }
.btn-sm   { padding: 4px 10px;  font-size: 0.76rem; }

/* Alerts */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 0.82rem;
  margin-bottom: 14px;
  border-width: 1px;
  border-style: solid;
}
.alert i { margin-top: 1px; flex-shrink: 0; }
.alert-success { background: #f0fdf4; border-color: var(--green-muted); color: var(--green-dark); }
.alert-warning { background: #fffbeb; border-color: #fcd34d;            color: #92400e; }
.alert-danger  { background: #fef2f2; border-color: #fecaca;            color: #991b1b; }
.alert-info    { background: #eff6ff; border-color: #93c5fd;            color: #1e40af; }

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

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

.form-control {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--text-primary);
  background: var(--white);
  transition: border-color 0.12s;
  outline: none;
}
.form-control:focus { border-color: var(--green); }
.form-control::placeholder { color: var(--text-muted); }

select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 80px; }

.form-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.12s;
}
.form-check:hover { border-color: var(--green); }
.form-check input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--green);
  margin-top: 2px;
  flex-shrink: 0;
}
.form-check-label { font-size: 0.84rem; font-weight: 600; color: var(--text-primary); }
.form-check-hint  { display: block; font-size: 0.76rem; color: var(--text-muted); margin-top: 1px; }

/* Tables */
.table-wrap { overflow-x: auto; }
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.table th {
  text-align: left;
  padding: 8px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--gray-1);
  border-bottom: 1px solid var(--border);
}
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--gray-1); }

/* Progress bar */
.progress-wrap { margin: 4px 0; }
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.progress-bar {
  height: 4px;
  background: var(--gray-2);
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.4s ease;
}
.progress-fill.success { background: var(--success); }
.progress-fill.warning { background: var(--warning); }
.progress-fill.danger  { background: var(--danger); }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}
.empty-state i    { font-size: 2rem; margin-bottom: 10px; display: block; }
.empty-state p    { font-size: 0.85rem; }

/* Skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--gray-1) 25%, var(--gray-2) 50%, var(--gray-1) 75%);
  background-size: 400%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer { 0% { background-position: 100%; } 100% { background-position: 0%; } }
.skeleton-card { height: 80px; margin-bottom: 12px; }
.skeleton-text { height: 38px; margin-bottom: 12px; }


/* ============================================
   DASHBOARD
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.stat-card.success { border-left: 3px solid var(--success); }
.stat-card.warning { border-left: 3px solid var(--warning); }
.stat-card.danger  { border-left: 3px solid var(--danger); }
.stat-card.primary { border-left: 3px solid var(--green); }
.stat-card.info    { border-left: 3px solid var(--info); }

.stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.5px;
}
.stat-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* WA Button */
.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: #22c55e;
  color: white;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.12s;
}
.btn-wa:hover { background: #16a34a; text-decoration: none; }


/* ============================================
   ABSENSI (CAMERA)
   ============================================ */
.camera-mode-tabs {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}
.camera-mode-tab {
  flex: 1;
  padding: 8px 12px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  background: var(--white);
  border: none;
  transition: background 0.12s, color 0.12s;
}
.camera-mode-tab:not(:last-child) { border-right: 1px solid var(--border); }
.camera-mode-tab.active {
  background: var(--green-light);
  color: var(--green-dark);
  font-weight: 600;
}
.camera-mode-tab i { margin-right: 5px; }

.camera-preview {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--gray-1);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
}

.camera-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
}
.camera-placeholder i { font-size: 2rem; }
.camera-placeholder p { font-size: 0.82rem; }
.camera-placeholder span { font-size: 0.72rem; }

.face-guide {
  width: 140px;
  height: 180px;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.absen-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}
.btn-absen-masuk,
.btn-absen-pulang {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn-absen-masuk  { background: var(--green); color: white; }
.btn-absen-pulang { background: var(--gray-9); color: white; }
.btn-absen-masuk:hover, .btn-absen-pulang:hover { opacity: 0.88; }
.btn-absen-masuk:disabled, .btn-absen-pulang:disabled { opacity: 0.45; cursor: not-allowed; }

.absen-status {
  margin-top: 10px;
  font-size: 0.82rem;
  padding: 8px 12px;
  border-radius: var(--radius);
  display: none;
}
.absen-status.show        { display: block; }
.absen-status.success     { background: #f0fdf4; color: var(--green-dark); border: 1px solid var(--green-muted); }
.absen-status.error       { background: #fef2f2; color: #991b1b;            border: 1px solid #fecaca; }
.absen-status.processing  { background: var(--gray-1); color: var(--text-secondary); border: 1px solid var(--border); }


/* ============================================
   LOADING OVERLAY
   ============================================ */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.spinner-ring {
  width: 32px;
  height: 32px;
  border: 2.5px solid var(--border);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
#loading-text { font-size: 0.82rem; color: var(--text-secondary); }


/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast-container {
  position: fixed;
  bottom: 80px;
  right: 16px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid;
  max-width: 320px;
  pointer-events: auto;
  animation: toastIn 0.2s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.toast.success { background: #f0fdf4; border-color: var(--green-muted); color: var(--green-dark); }
.toast.error   { background: #fef2f2; border-color: #fecaca;            color: #991b1b; }
.toast.info    { background: #eff6ff; border-color: #93c5fd;            color: #1e40af; }
.toast.warning { background: #fffbeb; border-color: #fcd34d;            color: #92400e; }


/* ============================================
   MODAL (Perangkat Ajar)
   ============================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9000;
}
.modal-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  max-width: 400px;
  width: 100%;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.modal-title { font-size: 0.9rem; font-weight: 600; }


/* ============================================
   QUICK ACTIONS (Dashboard)
   ============================================ */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}
.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.12s, background 0.12s;
}
.quick-action-btn:hover { border-color: var(--green); background: var(--green-light); }
.quick-action-btn i { font-size: 1.1rem; color: var(--green); }
.quick-action-btn span { font-size: 0.78rem; font-weight: 500; color: var(--text-secondary); }


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .app-nav    { display: none; }
  .main-content { margin-left: 0; width: 100%; }

  .mobile-header     { display: flex; }
  .mobile-bottom-nav { display: flex; }

  .page-container {
    padding: 16px;
    padding-top: calc(var(--topbar-h) + 16px);
    padding-bottom: calc(var(--bottomnav-h) + 16px);
  }

  .toast-container { bottom: calc(var(--bottomnav-h) + 8px); }

  .form-row { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .absen-buttons { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row   { grid-template-columns: repeat(2, 1fr); }
  .dev-role-grid { grid-template-columns: repeat(3, 1fr); }
}
