:root {
  --primary: #4A7C59;
  --primary-dark: #3A6346;
  --primary-light: #E8F5E9;
  --secondary: #FDF6EC;
  --accent: #E8A838;
  --accent-light: #FFF3E0;
  --neutral: #5A5A5A;
  --neutral-light: #9E9E9E;
  --bg: #FAFAF8;
  --white: #FFFFFF;
  --success: #2E7D32;
  --danger: #C62828;
  --danger-light: #FFEBEE;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-hover: 0 4px 20px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-full: 999px;
  --transition: 0.2s ease;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--neutral);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── Layout ─── */
.app-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px;
  min-height: 100vh;
}

.app-container-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

/* ─── Header ─── */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 20px;
}

.app-header h1 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.app-header .logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-header .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.header-actions .icon-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--white);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--neutral);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.header-actions .icon-btn:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.header-actions .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

/* ─── Card ─── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.card-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--neutral-light);
  margin-bottom: 6px;
}

/* ─── Form Elements ─── */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--neutral);
  margin-bottom: 6px;
}

.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: '▾';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--neutral-light);
  font-size: 14px;
  pointer-events: none;
}

select, input[type="text"], input[type="number"], input[type="date"] {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #E8E8E8;
  border-radius: var(--radius);
  font-size: 16px;
  font-family: inherit;
  color: var(--neutral);
  background: var(--white);
  transition: var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

select {
  padding-right: 40px;
}

select:focus, input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
}

.input-lg {
  font-size: 28px;
  font-weight: 700;
  padding: 16px 20px;
  text-align: center;
}

.input-unit {
  position: relative;
}

.input-unit input {
  padding-right: 70px;
}

.input-unit .unit-label {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--neutral-light);
  font-size: 14px;
  font-weight: 600;
}

/* ─── Toggle Pagi/Sore ─── */
.toggle-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.toggle-btn {
  padding: 14px;
  border: 2px solid #E8E8E8;
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  font-size: 15px;
  font-weight: 500;
  color: var(--neutral);
  font-family: inherit;
}

.toggle-btn .toggle-icon {
  display: block;
  font-size: 24px;
  margin-bottom: 4px;
}

.toggle-btn:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.toggle-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.toggle-btn.active .toggle-icon {
  filter: brightness(10);
}

/* ─── Date Display ─── */
.date-display {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--secondary);
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 500;
  color: var(--neutral);
}

.date-display .date-icon {
  font-size: 20px;
}

/* ─── Date Picker ─── */
.date-picker-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--secondary);
  border: 2px solid #E8E8E8;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  font-size: 16px;
  font-weight: 500;
  color: var(--neutral);
}

.date-picker-trigger:hover {
  border-color: var(--primary);
  background: #FBF5E8;
}

.date-picker-trigger .date-icon {
  font-size: 20px;
}

.date-picker-trigger .date-arrow {
  margin-left: auto;
  color: var(--neutral-light);
  font-size: 12px;
}

.date-input-hidden {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* ─── Button ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
  width: 100%;
  padding: 16px;
  font-size: 17px;
  box-shadow: 0 4px 14px rgba(74, 124, 89, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(74, 124, 89, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 8px;
}

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

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

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

.btn-danger:hover {
  background: #B71C1C;
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid #E8E8E8;
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--neutral-light);
  transition: var(--transition);
}

.btn-icon:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ─── Info Total ─── */
.total-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0 0;
  margin-top: 12px;
  border-top: 1px solid #E8E8E8;
}

.total-info span {
  font-size: 13px;
  color: var(--neutral-light);
}

.total-info strong {
  font-size: 18px;
  color: var(--primary);
  font-weight: 700;
}

/* ─── Alert ─── */
.alert {
  display: none;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.alert.show {
  display: flex;
}

.alert-danger {
  background: var(--danger-light);
  color: var(--danger);
  border: 1px solid #FFCDD2;
}

.alert-danger .alert-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.alert-success {
  background: #E8F5E9;
  color: var(--success);
  border: 1px solid #C8E6C9;
}

/* ─── Stat Cards (Dashboard) ─── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.stat-icon.green {
  background: var(--primary-light);
  color: var(--primary);
}

.stat-icon.cream {
  background: var(--accent-light);
  color: var(--accent);
}

.stat-icon.blue {
  background: #E3F2FD;
  color: #1565C0;
}

.stat-icon.purple {
  background: #F3E5F5;
  color: #7B1FA2;
}

.stat-info .stat-label {
  font-size: 12px;
  color: var(--neutral-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.stat-info .stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--neutral);
  line-height: 1.2;
}

.stat-info .stat-detail {
  font-size: 13px;
  color: var(--neutral-light);
  margin-top: 2px;
}

/* ─── Dashboard Grid ─── */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
}

.dashboard-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--neutral);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ─── Chart ─── */
.chart-container {
  padding: 8px 0;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 160px;
  padding-top: 20px;
}

.chart-bar-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.chart-bar {
  width: 100%;
  max-width: 40px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(to top, var(--primary), #6BAF7A);
  min-height: 4px;
  transition: height 0.6s ease;
  position: relative;
  cursor: pointer;
}

.chart-bar:hover {
  opacity: 0.8;
}

.chart-bar .bar-tooltip {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--neutral);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  transition: var(--transition);
}

.chart-bar:hover .bar-tooltip {
  opacity: 1;
}

.chart-label {
  font-size: 11px;
  color: var(--neutral-light);
  margin-top: 6px;
  font-weight: 500;
}

.chart-legend {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--neutral-light);
}

.chart-legend span::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: middle;
}

.chart-legend .legend-pagi::before {
  background: var(--primary);
}

.chart-legend .legend-sore::before {
  background: var(--accent);
}

/* ─── Ranking ─── */
.ranking-list {
  list-style: none;
}

.ranking-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #F0F0F0;
}

.ranking-item:last-child {
  border-bottom: none;
}

.ranking-pos {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.ranking-pos.gold {
  background: #FFF8E1;
  color: #F9A825;
}

.ranking-pos.silver {
  background: #F5F5F5;
  color: #757575;
}

.ranking-pos.bronze {
  background: #FBE9E7;
  color: #BF360C;
}

.ranking-pos.default {
  background: #F5F5F5;
  color: var(--neutral-light);
}

.ranking-info {
  flex: 1;
}

.ranking-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--neutral);
}

.ranking-detail {
  font-size: 12px;
  color: var(--neutral-light);
}

.ranking-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}

/* ─── Tabel Setoran ─── */
.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--neutral-light);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 12px 16px;
  border-bottom: 2px solid #E8E8E8;
}

td {
  padding: 14px 16px;
  font-size: 14px;
  border-bottom: 1px solid #F0F0F0;
  color: var(--neutral);
}

tr:hover td {
  background: #F8FBF9;
}

tr:last-child td {
  border-bottom: none;
}

td .badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

.badge-pagi {
  background: var(--primary-light);
  color: var(--primary);
}

.badge-sore {
  background: var(--accent-light);
  color: var(--accent);
}

/* ─── Sidebar Layout (Dashboard) ─── */
.dashboard-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--white);
  border-right: 1px solid #E8E8E8;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
}

.sidebar .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 24px;
  border-bottom: 1px solid #E8E8E8;
  margin-bottom: 24px;
}

.logo-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.sidebar .logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
}

.sidebar .logo-text h2 {
  font-size: 16px;
  color: var(--primary);
  font-weight: 700;
}

.sidebar .logo-text span {
  font-size: 11px;
  color: var(--neutral-light);
}

.sidebar-nav {
  list-style: none;
  flex: 1;
}

.sidebar-nav li {
  margin-bottom: 4px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--neutral);
  text-decoration: none;
  transition: var(--transition);
}

.sidebar-nav a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.sidebar-nav a.active {
  background: var(--primary);
  color: white;
}

.sidebar-nav a .nav-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.sidebar-footer {
  padding-top: 16px;
  border-top: 1px solid #E8E8E8;
}

.sidebar-footer .user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
}

.sidebar-footer .user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
}

.sidebar-footer .user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--neutral);
}

.sidebar-footer .user-role {
  font-size: 11px;
  color: var(--neutral-light);
}

/* ─── Main Content ─── */
.main-content {
  padding: 24px 32px;
  background: var(--bg);
}

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

.main-header h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--neutral);
}

.main-header .breadcrumb {
  font-size: 13px;
  color: var(--neutral-light);
}

.main-header .date-badge {
  font-size: 13px;
  color: var(--neutral-light);
  background: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow);
}

/* ─── Tabs ─── */
.tabs {
  display: flex;
  gap: 4px;
  background: #E8E8E8;
  padding: 4px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  width: fit-content;
}

.tab-btn {
  padding: 8px 20px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  background: transparent;
  color: var(--neutral-light);
  transition: var(--transition);
}

.tab-btn:hover {
  color: var(--neutral);
}

.tab-btn.active {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow);
}

/* ─── Modal ─── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

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

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  animation: modalIn 0.2s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

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

.modal-header h3 {
  font-size: 18px;
  color: var(--neutral);
}

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: #F0F0F0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neutral-light);
}

/* ─── Toast Notification ─── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 14px 20px;
  border-radius: var(--radius);
  color: white;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  animation: slideIn 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast-success {
  background: var(--success);
}

.toast-danger {
  background: var(--danger);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ─── Responsive ─── */
@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 260px;
    z-index: 3000;
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
  }

  .sidebar.show {
    display: flex;
  }

  .main-content {
    padding: 16px;
    padding-top: 60px;
  }

  .main-header h1 {
    font-size: 18px;
  }

  .dashboard-section-title {
    font-size: 14px;
  }
}

@media (max-width: 720px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .stat-card {
    padding: 14px;
  }

  .stat-info .stat-value {
    font-size: 22px;
  }

  .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .app-container {
    padding: 12px;
  }

  .input-lg {
    font-size: 24px;
    padding: 14px 16px;
  }

  .main-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .main-header .date-badge {
    align-self: flex-start;
  }

  .tabs {
    width: 100%;
  }

  .tab-btn {
    flex: 1;
    text-align: center;
  }

  .card {
    padding: 14px;
  }

  th, td {
    padding: 10px 8px;
    font-size: 13px;
  }

  .chart-bars {
    height: 120px;
    gap: 4px;
  }

  .chart-bar-wrapper .chart-label {
    font-size: 9px;
  }

  .ranking-item {
    padding: 10px 0;
  }

  .ranking-name {
    font-size: 13px;
  }

  .ranking-value {
    font-size: 14px;
  }
}

@media (max-width: 400px) {
  .stats-grid {
    gap: 6px;
  }

  .stat-card {
    padding: 10px;
  }

  .stat-info .stat-value {
    font-size: 18px;
  }

  .stat-icon {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }

  th, td {
    padding: 8px 6px;
    font-size: 12px;
  }

  .card {
    padding: 12px;
    border-radius: 12px;
  }

  .stat-mini .sm-value {
    font-size: 18px;
  }
}

/* ─── Mobile Topbar ─── */
.mobile-topbar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: var(--white);
  border-bottom: 1px solid #E8E8E8;
  z-index: 2000;
  padding: 0 16px;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.mobile-topbar .hamburger {
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  font-size: 22px;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neutral);
}

.mobile-topbar .hamburger:hover {
  background: var(--bg);
}

.mobile-topbar .mobile-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
}

@media (max-width: 1200px) {
  .mobile-topbar {
    display: flex;
  }
}

/* ─── Sidebar Overlay ─── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 2500;
}

.sidebar-overlay.show {
  display: block;
}

/* ─── Admin Login ─── */
.admin-login-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.admin-login-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  width: 100%;
  max-width: 360px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.admin-login-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.admin-login-card h2 {
  font-size: 20px;
  color: var(--neutral);
  margin-bottom: 4px;
}

/* ─── Loading Bar ─── */
.loading-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 9999;
  background: var(--primary-light);
  overflow: hidden;
  display: none;
}

.loading-bar.active {
  display: block;
}

.loading-bar::after {
  content: '';
  display: block;
  width: 40%;
  height: 100%;
  background: var(--primary);
  animation: loadingSlide 1.2s ease-in-out infinite;
  border-radius: 2px;
}

@keyframes loadingSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}
