/* ============================================================
   KAS RT - MAIN STYLESHEET
   Glassmorphism Design — Modern PHP Version
   ============================================================ */

/* === DESIGN TOKENS === */
:root {
  --primary: #4f46e5;
  --primary-light: #6366f1;
  --primary-dark: #3730a3;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --gray: #6b7280;
  --dark: #111827;
  --light: #f9fafb;

  --sidebar-w: 240px;
  --glass: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.5);
  --shadow: 0 8px 32px rgba(79, 70, 229, 0.10);
  --shadow-lg: 0 16px 48px rgba(79, 70, 229, 0.16);
  --radius: 16px;
  --font-main: 'Outfit', system-ui, sans-serif;
}

/* === RESET === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: #eeff9300;
  /* transparent, shown from background */
  background: linear-gradient(135deg, #e0e7ff 0%, #f0fdf4 40%, #fce7f3 100%);
  min-height: 100vh;
  color: var(--dark);
  overflow-x: hidden;
}

/* === ANIMATED BACKGROUND BLOBS === */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.30;
  z-index: -1;
  pointer-events: none;
  animation: blobDrift 18s ease-in-out infinite alternate;
}

.blob-1 {
  width: 550px;
  height: 550px;
  top: -150px;
  left: -150px;
  background: radial-gradient(circle, #c7d2fe, #818cf8);
}

.blob-2 {
  width: 450px;
  height: 450px;
  bottom: -120px;
  right: -100px;
  background: radial-gradient(circle, #bbf7d0, #6ee7b7);
  animation-delay: -6s;
}

.blob-3 {
  width: 320px;
  height: 320px;
  top: 55%;
  left: 55%;
  background: radial-gradient(circle, #fbcfe8, #f9a8d4);
  animation-delay: -12s;
}

@keyframes blobDrift {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(40px, 60px) scale(1.06);
  }
}

/* === GLASS UTILITIES === */
.glass-panel {
  background: var(--glass);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
}

.glass-card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.glass-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* === LAYOUT === */
#app-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

#main-view {
  display: flex;
  width: 100%;
  flex: 1;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 100;
  padding: 1.5rem 1rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.sidebar-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  margin-bottom: 1.25rem;
  background: rgba(79, 70, 229, 0.07);
  border-radius: 12px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #818cf8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.user-details h4 {
  font-size: 0.85rem;
  font-weight: 600;
}

.user-details .badge {
  font-size: 0.68rem;
}

.nav-links {
  list-style: none;
  flex: 1;
  overflow-y: auto;
}

.nav-links li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--dark);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-links li a:hover {
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
}

.nav-links li a.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.nav-links li a i {
  width: 1.1rem;
  text-align: center;
}

.sidebar-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
}

.sidebar-footer .btn {
  width: 100%;
  justify-content: center;
}

.content-area {
  margin-left: var(--sidebar-w);
  width: calc(100% - var(--sidebar-w));
  flex: 1;
  padding: 1.5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.mobile-header {
  display: none;
}

/* === VIEWS === */
#view-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.page-view {
  display: none;
  flex: 1;
  width: 100%;
}

.page-view.active {
  display: flex;
  flex-direction: column;
  width: 100%;
  animation: pageIn 0.3s ease;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-header div h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.page-header div p {
  font-size: 0.875rem;
  color: var(--gray);
}

/* === LOADER === */
.loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.spinner {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 5px solid rgba(79, 70, 229, 0.2);
  border-top-color: var(--primary);
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loader-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

.modal-overlay {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 5000;
}

.modal-sheet {
  background: white;
  border-radius: 20px;
  padding: 1.75rem;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.route-loader-box {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem;
}

.route-loader-spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 4px solid rgba(79, 70, 229, 0.2);
  border-top-color: var(--primary);
  animation: spin 0.8s linear infinite;
  margin-bottom: 0.75rem;
}

.route-loader-text {
  font-size: 0.85rem;
  color: var(--gray);
  font-weight: 500;
}

/* === TOAST === */
.toast {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border-radius: 14px;
  min-width: 240px;
  max-width: 360px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  background: white;
  color: var(--dark);
  transform: translateY(120%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
  transform: translateY(0);
}

.toast.toast-success {
  background: #ecfdf5;
  border-left: 4px solid var(--success);
}

.toast.toast-error {
  background: #fef2f2;
  border-left: 4px solid var(--danger);
}

.toast.toast-warning {
  background: #fffbeb;
  border-left: 4px solid var(--warning);
}

.toast-icon {
  font-size: 1.1rem;
}

.toast.toast-success .toast-icon {
  color: var(--success);
}

.toast.toast-error .toast-icon {
  color: var(--danger);
}

.toast.toast-warning .toast-icon {
  color: var(--warning);
}

.toast-body {
  font-size: 0.875rem;
  font-weight: 500;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}

.btn-success {
  background: var(--success);
  color: #fff;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #d1d5db;
  color: var(--dark);
}

.btn-secondary:hover {
  background: white;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: rgba(79, 70, 229, 0.07);
}

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  background: rgba(79, 70, 229, 0.08);
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.btn-icon:hover {
  background: rgba(79, 70, 229, 0.18);
}

/* === BADGES === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.725rem;
  font-weight: 600;
}

.badge-success {
  background: rgba(16, 185, 129, 0.12);
  color: #065f46;
}

.badge-warning {
  background: rgba(245, 158, 11, 0.12);
  color: #92400e;
}

.badge-danger {
  background: rgba(239, 68, 68, 0.12);
  color: #991b1b;
}

.badge-primary {
  background: rgba(79, 70, 229, 0.12);
  color: var(--primary-dark);
}

.badge-secondary {
  background: rgba(107, 114, 128, 0.1);
  color: var(--gray);
}

/* === FORMS === */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray);
}

.form-control {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid rgba(79, 70, 229, 0.15);
  border-radius: 10px;
  font-family: var(--font-main);
  font-size: 0.9rem;
  color: var(--dark);
  background: rgba(255, 255, 255, 0.75);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

/* === TABLES === */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

thead th {
  padding: 0.85rem 1rem;
  background: rgba(79, 70, 229, 0.06);
  color: var(--primary-dark);
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  border-bottom: 2px solid rgba(79, 70, 229, 0.12);
}

tbody td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  vertical-align: middle;
}

tbody tr:hover {
  background: rgba(79, 70, 229, 0.03);
}

tbody tr:last-child td {
  border-bottom: none;
}

.text-center {
  text-align: center;
}

/* === STAT CARDS === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  border-radius: var(--radius);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
}

.stat-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.stat-card-label {
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0.85;
}

.stat-card-value {
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.1;
}

/* === SPINNER SMALL === */
.spinner-small {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid rgba(79, 70, 229, 0.2);
  border-top-color: var(--primary);
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

/* ===  LOGIN PAGE === */
#login-view {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  width: 100%;
}

/* === SETTINGS === */
.settings-section {
  margin-bottom: 20px;
}

.settings-section:hover {
  transform: none;
}

.settings-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.settings-section-header h3 {
  margin: 0 0 2px;
  font-size: 15px;
}

.settings-section-header p {
  margin: 0;
  font-size: 12px;
  color: var(--gray);
}

.settings-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  flex-shrink: 0;
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

.settings-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.settings-field.full-width {
  grid-column: 1 / -1;
}

.settings-field label {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
}

.settings-field input {
  padding: 9px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 13px;
  font-family: var(--font-main);
  background: rgba(255, 255, 255, 0.7);
  color: var(--dark);
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.settings-field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.settings-field input:read-only {
  background: rgba(243, 244, 246, 0.8);
  color: #9ca3af;
  cursor: not-allowed;
}

.settings-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.settings-input-wrap input {
  flex: 1;
  padding-right: 42px;
}

.settings-input-action {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: var(--gray);
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
  text-decoration: none;
  transition: color 0.2s;
}

.settings-input-action:hover {
  color: var(--primary);
}

.settings-hint {
  font-size: 11px;
  color: var(--gray);
  line-height: 1.4;
}

.settings-hint.full-width {
  grid-column: 1 / -1;
}

.settings-hint a {
  color: var(--primary);
  text-decoration: none;
}

.settings-alert {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 13px;
}

.settings-alert i {
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.settings-alert p {
  margin: 4px 0 0;
  font-size: 12px;
}

.settings-alert-warning {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #92400e;
}

.settings-alert-warning i {
  color: var(--warning);
}

.settings-save-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  position: sticky;
  bottom: 0;
  margin: 20px -1.5rem -1.5rem;
  border-radius: 0 0 16px 16px;
}

/* === MEMBER MODAL === */
.member-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}

.member-modal-overlay .modal-box {
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
  animation: slideUp 0.25s ease;
}

.member-modal-overlay .modal-box.modal-lg {
  max-width: 800px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #888;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s;
}

.modal-close:hover {
  background: #f3f4f6;
}

.modal-body {
  padding: 22px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 14px 22px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 5px;
  color: #666;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #f9fafb;
  color: #111;
  font-size: 13px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.required {
  color: #ef4444;
  margin-left: 2px;
}

.import-info-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 16px;
  font-size: 13px;
}

.import-info-box i {
  color: var(--primary);
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.import-drop-zone {
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  color: #888;
}

.import-drop-zone:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.04);
  color: var(--primary);
}

.import-drop-zone i {
  font-size: 2.5rem;
  margin-bottom: 10px;
  display: block;
}

.import-drop-zone p {
  margin: 0;
  font-size: 14px;
}

.btn-icon-group {
  display: flex;
  gap: 6px;
}

.btn-icon-sm {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-icon-sm:hover {
  transform: scale(1.1);
}

.btn-edit {
  background: #eff6ff;
  color: #3b82f6;
}

.btn-ban {
  background: #fef2f2;
  color: #ef4444;
}

.btn-check {
  background: #ecfdf5;
  color: #10b981;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
  }

  .content-area {
    margin-left: 0;
    padding: 1rem;
    padding-top: 4.5rem;
  }

  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 90;
    padding: 0.75rem 1.25rem;
    border-radius: 0;
  }

  .mobile-header .logo {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .settings-save-bar {
    margin: 20px -1rem -1rem;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .modal-sheet {
    max-width: 100%;
  }

  table thead {
    display: none;
  }

  table tbody td {
    display: block;
    padding: 0.4rem 0.7rem;
    border-bottom: none;
    font-size: 0.8rem;
  }

  table tbody td::before {
    content: attr(data-label) ': ';
    font-weight: 600;
    color: var(--gray);
    font-size: 0.72rem;
  }

  table tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    padding: 0.6rem 0;
    display: block;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Sidebar overlay on mobile */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 99;
  display: none;
}

.sidebar-overlay.show {
  display: block;
}