/* ============================================================
   SILAPOR — Premium UI Stylesheet
   Font: Inter (Google Fonts)
   Palette: Navy #1E3A8A | Blue #3B82F6 | BG #F8FAFC | Green #10B981
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");

/* ─── CSS Variables ────────────────────────────────────────── */
:root {
  --primary: #1e3a8a;
  --primary-light: #2563eb;
  --secondary: #3b82f6;
  --accent: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --bg: #f8fafc;
  --card: #ffffff;
  --sidebar-w: 260px;
  --navbar-h: 64px;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset & Base ─────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  font-size: 0.9375rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
}
img {
  max-width: 100%;
}

/* ─── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ═══════════════════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════════════════ */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: linear-gradient(180deg, #1e3a8a 0%, #1e3070 100%);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1040;
  transition: var(--transition);
  box-shadow: 4px 0 24px rgba(30, 58, 138, 0.18);
}

/* Brand */
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.4rem 1.4rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.sidebar-brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}
.sidebar-brand-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}
.sidebar-brand-sub {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 400;
  line-height: 1;
}

/* Nav section label */
.sidebar-section-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  padding: 1.2rem 1.4rem 0.4rem;
}

/* Nav items */
.sidebar-nav {
  padding: 0.5rem 0.8rem;
  flex: 1;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.9rem;
  margin-bottom: 0.15rem;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}
.sidebar-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.sidebar-link.active {
  color: #fff;
  background: rgba(59, 130, 246, 0.28);
  box-shadow: inset 3px 0 0 #3b82f6;
}
.sidebar-link .icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Sidebar footer (user info) */
.sidebar-footer {
  padding: 1rem 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}
.sidebar-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}
.sidebar-user-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}
.sidebar-user-role {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.45);
}

.btn-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  font-size: 0.8rem;
  font-weight: 500;
  transition: var(--transition);
}
.btn-logout:hover {
  background: rgba(239, 68, 68, 0.28);
  color: #fff;
}

/* Sidebar overlay on mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1039;
}
.sidebar-overlay.show {
  display: block;
}

/* ═══════════════════════════════════════════════════════════
   TOP NAVBAR
═══════════════════════════════════════════════════════════ */
.topnav {
  position: sticky;
  top: 0;
  height: var(--navbar-h);
  background: var(--card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 1rem;
  z-index: 1030;
  box-shadow: var(--shadow-sm);
}

.topnav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-dark);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.35rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.topnav-toggle:hover {
  background: var(--bg);
}

.topnav-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  flex: 1;
}
.topnav-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

.topnav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.topnav-user {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}
.topnav-avatar {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}
.topnav-user-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
}
.topnav-user-role {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════
   MAIN LAYOUT
═══════════════════════════════════════════════════════════ */
.app-wrapper {
  display: flex;
  min-height: 100vh;
}

.app-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.page-body {
  padding: 1.75rem 1.75rem 3rem;
  flex: 1;
}

/* Page header */
.page-header {
  margin-bottom: 1.5rem;
}
.page-header h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.15rem;
  letter-spacing: -0.3px;
}
.page-header p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* Breadcrumb */
.breadcrumb-modern {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1.4rem;
}
.breadcrumb-modern a {
  color: var(--secondary);
}
.breadcrumb-modern .sep {
  color: var(--border);
}

/* ═══════════════════════════════════════════════════════════
   CARDS
═══════════════════════════════════════════════════════════ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-body {
  padding: 1.4rem;
}
.card-header-custom {
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.card-header-custom h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Stat Cards */
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.3rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.stat-icon.blue {
  background: #eff6ff;
  color: #3b82f6;
}
.stat-icon.green {
  background: #ecfdf5;
  color: #10b981;
}
.stat-icon.yellow {
  background: #fffbeb;
  color: #f59e0b;
}
.stat-icon.purple {
  background: #f5f3ff;
  color: #8b5cf6;
}
.stat-icon.red {
  background: #fef2f2;
  color: #ef4444;
}
.stat-icon.navy {
  background: #eff6ff;
  color: #1e3a8a;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.25rem;
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════ */
.btn {
  font-family: inherit;
  font-weight: 500;
  border-radius: var(--radius-sm);
  padding: 0.48rem 1.1rem;
  font-size: 0.875rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
  box-shadow: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: #1e3070;
  color: #fff;
  border-color: #1e3070;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.btn-secondary-custom {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}
.btn-secondary-custom:hover {
  background: #2563eb;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text-dark);
  border-color: var(--border);
}
.btn-outline:hover {
  background: var(--bg);
  color: var(--text-dark);
}

.btn-success-custom {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-success-custom:hover {
  background: #059669;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-danger-custom {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}

.btn-sm {
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
}
.btn-lg {
  padding: 0.7rem 1.6rem;
  font-size: 1rem;
}
.btn-icon {
  padding: 0.45rem;
}
.btn-icon i {
  font-size: 1rem;
}

/* ═══════════════════════════════════════════════════════════
   FORMS
═══════════════════════════════════════════════════════════ */
.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.form-control,
.form-select {
  font-family: inherit;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.85rem;
  color: var(--text-dark);
  background: #fff;
  transition: var(--transition);
}
.form-control:focus,
.form-select:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
  outline: none;
}
.form-control::placeholder {
  color: #94a3b8;
}
.form-control:disabled,
.form-control[readonly] {
  background: var(--bg);
  color: var(--text-muted);
}
textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

/* Input with icon */
.input-group-icon {
  position: relative;
}
.input-group-icon .form-control {
  padding-left: 2.6rem;
}
.input-group-icon .input-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
}

/* File upload zone */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg);
  position: relative;
}
.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--secondary);
  background: #eff6ff;
}
.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.upload-zone .upload-icon {
  font-size: 2rem;
  color: var(--text-muted);
}
.upload-zone p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0.4rem 0 0;
}

/* ═══════════════════════════════════════════════════════════
   TABLES
═══════════════════════════════════════════════════════════ */
.table-modern {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.875rem;
}
.table-modern thead th {
  background: var(--bg);
  padding: 0.75rem 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table-modern thead th:first-child {
  border-radius: var(--radius-sm) 0 0 0;
}
.table-modern thead th:last-child {
  border-radius: 0 var(--radius-sm) 0 0;
}
.table-modern tbody tr {
  transition: var(--transition);
}
.table-modern tbody tr:hover td {
  background: #f8faff;
}
.table-modern tbody td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-dark);
  vertical-align: middle;
}
.table-modern tbody tr:last-child td {
  border-bottom: none;
}

/* ═══════════════════════════════════════════════════════════
   BADGES
═══════════════════════════════════════════════════════════ */
.badge-modern {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-draft {
  background: #fef3c7;
  color: #92400e;
}
.badge-submitted {
  background: #d1fae5;
  color: #065f46;
}
.badge-pb {
  background: #dbeafe;
  color: #1e40af;
}
.badge-cb {
  background: #ede9fe;
  color: #5b21b6;
}
.badge-danger {
  background: #fee2e2;
  color: #991b1b;
}
.badge-muted {
  background: #f1f5f9;
  color: #475569;
}

/* ═══════════════════════════════════════════════════════════
   ALERTS
═══════════════════════════════════════════════════════════ */
.alert-modern {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
}
.alert-modern i {
  font-size: 1rem;
  margin-top: 0.05rem;
  flex-shrink: 0;
}
.alert-success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}
.alert-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}
.alert-info {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}
.alert-warning {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}
.alert-close {
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  opacity: 0.5;
  font-size: 0.9rem;
  padding: 0;
  line-height: 1;
  color: inherit;
}
.alert-close:hover {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════
   SEARCH & FILTER BAR
═══════════════════════════════════════════════════════════ */
.filter-bar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.4rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

/* ═══════════════════════════════════════════════════════════
   REPORT CARDS (riwayat)
═══════════════════════════════════════════════════════════ */
.report-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}
.report-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}
.report-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--secondary);
  opacity: 0;
  transition: var(--transition);
}
.report-card:hover::before {
  opacity: 1;
}
.report-card.is-draft::before {
  background: var(--warning);
  opacity: 1;
}
.report-card.is-submitted::before {
  background: var(--accent);
  opacity: 1;
}

/* Note bubble */
.note-bubble {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  position: relative;
}
.note-bubble::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: -6px;
  width: 10px;
  height: 10px;
  background: #f0f9ff;
  border-left: 1px solid #bae6fd;
  border-top: 1px solid #bae6fd;
  transform: rotate(45deg);
}
.note-author {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
}
.note-time {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════
   EMPTY STATE
═══════════════════════════════════════════════════════════ */
.empty-state {
  text-align: center;
  padding: 3.5rem 2rem;
  color: var(--text-muted);
}
.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
  opacity: 0.35;
}
.empty-state h5 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}
.empty-state p {
  font-size: 0.82rem;
  margin-bottom: 1rem;
}

/* ═══════════════════════════════════════════════════════════
   DETAIL VIEW
═══════════════════════════════════════════════════════════ */
.detail-row {
  display: flex;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
  font-size: 0.875rem;
}
.detail-row:last-child {
  border-bottom: none;
}
.detail-label {
  width: 150px;
  flex-shrink: 0;
  color: var(--text-muted);
  font-weight: 500;
}
.detail-value {
  color: var(--text-dark);
  flex: 1;
}

/* ═══════════════════════════════════════════════════════════
   DIVIDER
═══════════════════════════════════════════════════════════ */
.divider {
  height: 1px;
  background: var(--border);
  margin: 1.25rem 0;
  border: none;
}

/* ═══════════════════════════════════════════════════════════
   AUTH PAGES
═══════════════════════════════════════════════════════════ */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1e3070 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
.auth-page::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.15) 0%,
    transparent 70%
  );
  top: -100px;
  right: -100px;
  border-radius: 50%;
}
.auth-page::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(16, 185, 129, 0.1) 0%,
    transparent 70%
  );
  bottom: -80px;
  left: -80px;
  border-radius: 50%;
}

.auth-card {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 2.2rem;
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
}
.auth-card-wide {
  max-width: 640px;
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.auth-brand-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.35);
}
.auth-brand-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}
.auth-brand-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 400;
}

.auth-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
}
.auth-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
  .sidebar {
    left: calc(-1 * var(--sidebar-w));
    box-shadow: none;
  }
  .sidebar.open {
    left: 0;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.22);
  }
  .app-content {
    margin-left: 0;
  }
  .topnav-toggle {
    display: flex;
  }
  .page-body {
    padding: 1.25rem 1rem 3rem;
  }
}

@media (max-width: 575px) {
  .stat-card {
    flex-direction: column;
    text-align: center;
  }
  .auth-card {
    padding: 1.5rem;
  }
  .page-body {
    padding: 1rem 0.75rem 3rem;
  }
  .detail-row {
    flex-direction: column;
    gap: 0.2rem;
  }
  .detail-label {
    width: auto;
  }
}
