/* ============================================================
   M-TERA Portal — Shared Stylesheet
   SMK Al-Falah Moga
   Colors: White + Green (#10b981) + Yellow (#fbbf24)
   Font: Poppins
   ============================================================ */

/* --- CSS Variables --- */
:root {
  --accent: #10b981;
  --accent-hover: #059669;
  --accent-dark: #065f46;
  --accent-light: #d1fae5;
  --accent-bg: #ecfdf5;
  --yellow: #fbbf24;
  --yellow-light: #fef3c7;
  --yellow-dark: #92400e;
  --bg-body: #f1f5f9;
  --bg-card: #ffffff;
  --bg-input: #f8fafc;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --danger: #ef4444;
  --danger-light: #fef2f2;
  --danger-border: #fecaca;
  --warning: #f59e0b;
  --warning-light: #fffbeb;
  --warning-border: #fde68a;
  --info: #3b82f6;
  --purple: #7c3aed;
  --teal: #0d9488;
  --teal-light: #f0fdfa;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.10);
  --nav-height: 64px;
}

/* --- Dark Mode --- */
body.dark {
  --bg-body: #0f172a;
  --bg-card: #1e293b;
  --bg-input: #334155;
  --border: #334155;
  --border-light: #1e293b;
  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-light: #064e3b;
  --accent-bg: #064e3b;
  --accent-dark: #6ee7b7;
  --yellow-light: #451a03;
  --yellow-dark: #fbbf24;
  --danger-light: #450a0a;
  --danger-border: #7f1d1d;
  --warning-light: #451a03;
  --warning-border: #92400e;
  --teal-light: #042f2e;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
}
body.dark .abs-izin { border-color: #115e59 !important; }
body.dark .abs-bolos { background: #2e1065; border-color: #581c87 !important; }
body.dark .abs-bolos .val { color: #c084fc; }
body.dark .abs-bolos .lbl { color: #e9d5ff; }
body.dark .tag-sakit { background: #451a03; color: #fbbf24; border-color: #92400e; }
body.dark .tag-izin { background: #042f2e; color: #5eead4; border-color: #115e59; }
body.dark .tag-alpha { background: #450a0a; color: #f87171; border-color: #7f1d1d; }
body.dark .tag-bolos { background: #2e1065; color: #c084fc; border-color: #581c87; }
body.dark .bg-green { background: #064e3b !important; color: #6ee7b7 !important; }
body.dark .bg-yellow { background: #451a03 !important; color: #fbbf24 !important; }
body.dark .bg-red { background: #450a0a !important; color: #f87171 !important; }
body.dark .alert-warning { background: #451a03; border-color: #92400e; }
body.dark .alert h4 { color: #fbbf24; }
body.dark .alert p { color: #fde68a; }
body.dark .error-banner { background: #450a0a; border-color: #7f1d1d; color: #fca5a5; }
body.dark .btn-danger-outline { background: #450a0a; border-color: #7f1d1d; color: #f87171; }
body.dark .btn-danger-outline:hover { background: #7f1d1d; }
body.dark .nis-preview .name { color: #6ee7b7; }

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Poppins', system-ui, sans-serif;
  background: var(--bg-body);
  color: var(--text);
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
input, select, textarea, button { font-family: inherit; }
img { max-width: 100%; display: block; }

/* --- Portal Header --- */
.portal-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow-sm);
}
.portal-header .h-left { display: flex; align-items: center; gap: 10px; }
.portal-header .h-logo {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(16,185,129,0.2);
}
.portal-header .h-logo i { font-size: 17px; color: #fff; }
.portal-header .h-brand h3 {
  font-size: 15px; font-weight: 800; color: var(--text); line-height: 1.2;
}
.portal-header .h-brand small {
  font-size: 10px; color: var(--text-muted); font-weight: 500;
}
.portal-header .h-right { display: flex; gap: 2px; }
.portal-header .h-btn {
  width: 36px; height: 36px;
  border: none; background: none;
  color: var(--text-secondary); border-radius: var(--radius-xs);
  cursor: pointer; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.portal-header .h-btn:hover { background: var(--bg-body); }
.portal-header .h-btn.danger { color: var(--danger); }
.portal-header .h-btn.danger:hover { background: var(--danger-light); }

/* --- Bottom Navigation --- */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 4px 4px;
  padding-bottom: calc(4px + env(safe-area-inset-bottom, 0px));
  display: flex; justify-content: space-around;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.04);
}
.bottom-nav a {
  display: flex; flex-direction: column;
  align-items: center; gap: 1px;
  padding: 6px 6px 4px;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  min-width: 52px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.bottom-nav a i { font-size: 18px; transition: transform 0.15s; }
.bottom-nav a span { font-size: 9px; font-weight: 700; margin-top: 1px; }
.bottom-nav a.active {
  color: var(--accent);
  background: var(--accent-bg);
}
.bottom-nav a.active i { transform: scale(1.1); }

/* --- Content Area --- */
.content-area {
  max-width: 540px;
  margin: 0 auto;
  padding: 16px 16px 88px;
}

/* --- Section Title --- */
.section-title { margin-bottom: 14px; }
.section-title h2 {
  font-size: 18px; font-weight: 800; color: var(--text);
}
.section-title p {
  font-size: 12px; color: var(--text-secondary); font-weight: 500; margin-top: 2px;
}
.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 14px;
}
.section-header .link {
  font-size: 12px; font-weight: 700; color: var(--accent); cursor: pointer;
}
.section-header .link:hover { text-decoration: underline; }

/* --- Card --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
}
.card-flush { padding: 0; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px;
  border: none; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 700;
  cursor: pointer; transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-accent {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 12px rgba(16,185,129,0.25);
}
.btn-accent:hover { background: var(--accent-hover); }
.btn-blue {
  background: var(--info); color: #fff;
  box-shadow: 0 4px 12px rgba(59,130,246,0.25);
}
.btn-blue:hover { background: #2563eb; }
.btn-danger-outline {
  background: var(--danger-light); color: var(--danger);
  border: 1px solid var(--danger-border);
}
.btn-danger-outline:hover { background: #fee2e2; }
.btn-full { width: 100%; }

/* --- Forms --- */
.form-group { margin-bottom: 14px; }
.form-label {
  display: block;
  font-size: 11px; font-weight: 700; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.input-wrap { position: relative; }
.input-wrap i.ic {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 15px; pointer-events: none;
}
.input-wrap input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text);
  font-size: 14px; font-weight: 500;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
}
.input-wrap input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.12);
}
.input-wrap input::placeholder { color: var(--text-muted); }
.input-wrap .btn-eye {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none;
  color: var(--text-muted); cursor: pointer; font-size: 15px; padding: 4px;
}

/* --- Tab Switcher (Login) --- */
.tab-switcher {
  display: flex; gap: 4px;
  background: var(--bg-body);
  padding: 4px; border-radius: var(--radius-sm);
  margin-bottom: 22px;
}
.tab-switcher button {
  flex: 1; padding: 10px 0;
  border: none; background: none;
  font-size: 13px; font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-xs); cursor: pointer;
  transition: all 0.2s;
}
.tab-switcher button.active {
  background: var(--bg-card);
  color: var(--accent); font-weight: 700;
  box-shadow: var(--shadow-sm);
}

/* --- NIS Preview --- */
.nis-preview {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent);
  background: var(--accent-light);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
}
.nis-preview .avatar {
  width: 40px; height: 40px;
  border-radius: var(--radius-xs);
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; flex-shrink: 0;
}
.nis-preview .info { flex: 1; min-width: 0; }
.nis-preview .name {
  font-size: 13px; font-weight: 700; color: var(--accent-dark);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nis-preview .meta { font-size: 11px; color: var(--text-secondary); font-weight: 500; }
.nis-preview .check { color: var(--accent); font-size: 18px; flex-shrink: 0; }

/* --- Error Banner --- */
.error-banner {
  padding: 10px 14px;
  background: var(--danger-light); border: 1px solid var(--danger-border);
  border-radius: var(--radius-sm); color: #b91c1c;
  font-size: 12px; font-weight: 600;
  display: flex; align-items: flex-start; gap: 8px;
  margin-bottom: 14px;
}

/* --- Hero Banner (Dashboard) --- */
.hero-banner {
  background: linear-gradient(135deg, #059669, #047857, #065f46);
  border-radius: 20px;
  padding: 22px 18px;
  color: #fff;
  position: relative; overflow: hidden;
  margin-bottom: 14px;
}
.hero-banner::before {
  content: ''; position: absolute;
  top: -40px; right: -40px;
  width: 150px; height: 150px;
  background: rgba(251,191,36,0.15);
  border-radius: 50%; pointer-events: none;
}
.hero-profile {
  display: flex; align-items: center; gap: 12px;
  position: relative; z-index: 1;
}
.hero-avatar {
  width: 50px; height: 50px;
  background: var(--yellow);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 22px;
  color: var(--accent-dark);
  flex-shrink: 0;
  border: 2px solid rgba(251,191,36,0.5);
}
.hero-info { flex: 1; min-width: 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  padding: 3px 8px;
  background: rgba(251,191,36,0.2); color: #fde68a;
  border-radius: 20px; border: 1px solid rgba(251,191,36,0.3);
}
.hero-info h2 {
  font-size: 17px; font-weight: 800; margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hero-info .sub { font-size: 11px; color: rgba(255,255,255,0.8); font-weight: 500; }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; margin-top: 14px;
  background: rgba(0,0,0,0.2); backdrop-filter: blur(8px);
  padding: 10px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  position: relative; z-index: 1;
}
.hero-stats .stat { text-align: center; padding: 2px 4px; }
.hero-stats .stat:nth-child(2) {
  border-left: 1px solid rgba(255,255,255,0.1);
  border-right: 1px solid rgba(255,255,255,0.1);
}
.hero-stats .val { font-size: 20px; font-weight: 900; }
.hero-stats .lbl {
  font-size: 9px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.3px;
  opacity: 0.75;
}

/* --- Alert --- */
.alert {
  padding: 14px;
  border-radius: var(--radius);
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 12px;
}
.alert-warning {
  background: var(--warning-light); border: 2px solid var(--yellow);
}
.alert .a-icon {
  width: 34px; height: 34px;
  border-radius: var(--radius-xs);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 15px;
}
.alert-warning .a-icon { background: var(--yellow); color: #0f172a; }
.alert h4 { font-size: 13px; font-weight: 800; color: var(--yellow-dark); margin-bottom: 2px; }
.alert p { font-size: 11px; color: #a16207; line-height: 1.5; font-weight: 500; }

/* --- Quick Menu --- */
.quick-menu {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 10px; margin-bottom: 14px;
}
.menu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer; transition: all 0.15s;
  text-decoration: none; color: inherit;
  display: block;
}
.menu-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.menu-card .mc-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; margin-bottom: 8px;
}
.menu-card h4 {
  font-size: 12px; font-weight: 700; color: var(--text);
  display: flex; align-items: center; justify-content: space-between;
}
.menu-card h4 i.fa-chevron-right { color: var(--text-muted); font-size: 11px; }
.menu-card p { font-size: 10px; color: var(--text-muted); margin-top: 2px; font-weight: 500; }

/* --- Absence Pills --- */
.abs-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; margin-bottom: 12px;
}
.abs-pill {
  text-align: center; padding: 10px 4px;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
}
.abs-pill .val { font-size: 18px; font-weight: 800; }
.abs-pill .lbl { font-size: 9px; font-weight: 700; text-transform: uppercase; margin-top: 2px; }

.abs-sakit { background: var(--warning-light); border-color: var(--warning-border) !important; }
.abs-sakit .val { color: #b45309; } .abs-sakit .lbl { color: var(--yellow-dark); }

.abs-izin { background: var(--teal-light); border-color: #99f6e4 !important; }
.abs-izin .val { color: var(--teal); } .abs-izin .lbl { color: #115e59; }

.abs-alpha { background: var(--danger-light); border-color: var(--danger-border) !important; }
.abs-alpha .val { color: var(--danger); } .abs-alpha .lbl { color: #b91c1c; }

.abs-bolos { background: #faf5ff; border-color: #e9d5ff !important; }
.abs-bolos .val { color: var(--purple); } .abs-bolos .lbl { color: #6d28d9; }

/* --- Progress Bar --- */
.progress-wrap { margin-top: 4px; }
.progress-labels {
  display: flex; justify-content: space-between;
  font-size: 11px; font-weight: 600; margin-bottom: 6px;
}
.progress-labels .pct { font-weight: 800; }
.progress-bar {
  width: 100%; height: 10px;
  background: var(--bg-body); border-radius: 20px;
  overflow: hidden; padding: 2px;
}
.progress-bar .fill {
  height: 100%; border-radius: 20px;
  transition: width 0.5s ease;
}

/* --- Recent Absence List --- */
.recent-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--bg-body); border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
}
.status-tag {
  padding: 4px 10px; border-radius: 8px;
  font-size: 10px; font-weight: 800; border: 1px solid;
  flex-shrink: 0;
}
.tag-sakit { background: var(--warning-light); color: #b45309; border-color: var(--warning-border); }
.tag-izin { background: var(--teal-light); color: var(--teal); border-color: #99f6e4; }
.tag-alpha { background: var(--danger-light); color: var(--danger); border-color: var(--danger-border); }
.tag-bolos { background: #faf5ff; color: var(--purple); border-color: #e9d5ff; }

/* --- Jadwal --- */
.day-pills {
  display: flex; gap: 6px;
  overflow-x: auto; padding-bottom: 4px;
  margin-bottom: 12px;
  -ms-overflow-style: none; scrollbar-width: none;
}
.day-pills::-webkit-scrollbar { display: none; }
.day-pill {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 12px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  transition: all 0.15s;
}
.day-pill.active {
  background: var(--accent); color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(16,185,129,0.25);
}

.jadwal-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
}
.jadwal-jam {
  width: 46px; height: 46px;
  background: var(--accent-bg); border: 1px solid var(--accent);
  border-radius: 14px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  flex-shrink: 0;
}
.jadwal-jam .j-label { font-size: 8px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }
.jadwal-jam .j-num { font-size: 17px; font-weight: 900; color: var(--accent-dark); line-height: 1; }
.jadwal-body { flex: 1; min-width: 0; }
.jadwal-body h4 {
  font-size: 13px; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.jadwal-body .j-meta {
  font-size: 11px; color: var(--text-secondary); font-weight: 500;
  display: flex; align-items: center; gap: 4px; margin-top: 2px;
}
.jadwal-body .j-meta i { font-size: 11px; color: var(--accent); }
.jadwal-waktu {
  font-size: 10px; font-weight: 700; color: var(--accent);
  background: var(--accent-bg); padding: 4px 10px;
  border-radius: 8px; white-space: nowrap; align-self: flex-start;
}

/* --- Kehadiran Mapel Card --- */
.mapel-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px;
  margin-bottom: 10px;
}
.mapel-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.mapel-top h4 {
  font-size: 13px; font-weight: 700; color: var(--text);
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mapel-pct {
  font-size: 12px; font-weight: 800;
  padding: 3px 10px; border-radius: 8px;
  flex-shrink: 0; margin-left: 8px;
}
.mapel-detail {
  display: flex; gap: 8px; flex-wrap: wrap;
  font-size: 11px; font-weight: 600;
}
.mapel-detail span {
  padding: 3px 8px; border-radius: 6px;
  background: var(--bg-body);
}

/* --- Nilai Card --- */
.nilai-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px;
  margin-bottom: 10px;
}
.nilai-header {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; margin-bottom: 2px;
}
.nilai-header h4 {
  font-size: 13px; font-weight: 700; color: var(--text);
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nilai-avg {
  font-size: 16px; font-weight: 900;
  padding: 4px 14px; border-radius: 8px;
  flex-shrink: 0; margin-left: 8px;
}
.nilai-items { margin-top: 6px; }
.nilai-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-top: 1px solid var(--border-light);
  font-size: 12px;
}
.nilai-row .n-label { color: var(--text-secondary); font-weight: 500; flex: 1; min-width: 0; }
.nilai-row .n-type {
  font-size: 10px; font-weight: 700;
  padding: 2px 6px; border-radius: 4px;
  background: var(--bg-body); color: var(--text-muted);
  margin-right: 6px;
}
.nilai-row .n-score { font-weight: 800; font-size: 14px; }

/* --- Profil --- */
.profil-avatar-lg {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 900; color: #fff;
  margin: 0 auto 14px;
  box-shadow: 0 8px 24px rgba(16,185,129,0.2);
}
.profil-name { font-size: 18px; font-weight: 800; text-align: center; }
.profil-meta { font-size: 12px; color: var(--text-secondary); font-weight: 500; text-align: center; margin-top: 4px; }

.profil-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
}
.profil-row:last-child { border-bottom: none; }
.profil-row .pr-left { display: flex; align-items: center; gap: 12px; }
.profil-row .pr-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-bg); color: var(--accent);
  border-radius: 10px; font-size: 15px; flex-shrink: 0;
}
.profil-row .pr-label { font-size: 11px; color: var(--text-muted); font-weight: 500; }
.profil-row .pr-value { font-size: 13px; font-weight: 700; color: var(--text); }

/* --- Score Color Helpers --- */
.c-green { color: var(--accent) !important; }
.c-yellow { color: var(--warning) !important; }
.c-red { color: var(--danger) !important; }
.bg-green { background: var(--accent-bg) !important; color: var(--accent-dark) !important; }
.bg-yellow { background: var(--warning-light) !important; color: var(--yellow-dark) !important; }
.bg-red { background: var(--danger-light) !important; color: #b91c1c !important; }

/* --- Empty State --- */
.empty-state {
  text-align: center; padding: 36px 20px; color: var(--text-muted);
}
.empty-state i { font-size: 32px; margin-bottom: 10px; opacity: 0.4; display: block; }
.empty-state p { font-size: 12px; font-weight: 500; }

/* --- Loading Skeleton --- */
.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, var(--bg-body) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* --- Utilities --- */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }

/* --- Login Page Specific --- */
.login-screen {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 24px 16px;
  position: relative; overflow: hidden;
}
.login-screen::before, .login-screen::after {
  content: ''; position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%; filter: blur(80px);
  pointer-events: none; opacity: 0.12;
}
.login-screen::before { top: -80px; left: -80px; background: var(--accent); }
.login-screen::after { bottom: -80px; right: -80px; background: var(--yellow); }

.login-brand {
  text-align: center; margin-bottom: 28px;
  position: relative; z-index: 1;
}
.login-brand .lb-logo {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(16,185,129,0.2);
}
.login-brand .lb-logo i { font-size: 26px; color: #fff; }
.login-brand h1 { font-size: 24px; font-weight: 800; color: var(--text); letter-spacing: -0.5px; }
.login-brand p { font-size: 13px; color: var(--text-secondary); margin-top: 4px; font-weight: 500; }

.login-card {
  width: 100%; max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 26px 22px;
  box-shadow: var(--shadow-lg);
  position: relative; z-index: 1;
}
.login-footer {
  text-align: center;
  font-size: 11px; color: var(--text-muted);
  margin-top: 20px; font-weight: 500;
  position: relative; z-index: 1;
}