/* AstraDax - mobile: performa + scroll. Dimuat paling akhir. Tema tunggal: gelap (dark). */

/* ===== SCROLL HP: satu-satunya penggulung = halaman (body), bukan kotak di dalamnya ===== */
@media (max-width: 768px) {
  html, body {
    height: auto !important; min-height: 100%;
    overflow-x: hidden !important; overflow-y: auto !important;
    touch-action: auto !important;
  }
  body { display: block !important; position: static !important; }
  .main-wrapper { display: block !important; height: auto !important; min-height: 100dvh; overflow: visible !important; }
  .content-scrollable { height: auto !important; max-height: none !important; overflow: visible !important; }
  /* tabel boleh geser ke samping, geser vertikal diteruskan ke halaman */
  .table-responsive {
    overflow-x: auto !important; overflow-y: hidden !important;
    max-height: none !important;
    touch-action: pan-x pan-y !important;
    overscroll-behavior-x: contain;
  }
  .table-responsive table { min-width: 560px; }
  .content-section, .dashboard-layout, .dashboard-left, .dashboard-right { overflow: visible; max-height: none; }
  /* sidebar mobile = panel geser tersendiri */
  .sidebar { position: fixed !important; top: 0; bottom: 0; height: 100dvh !important; z-index: 1000; }
  .sidebar-overlay.active { display: block; z-index: 999; }
  body:has(.sidebar.active) { overflow: hidden !important; }
}

/* ===== PERFORMA: layar sentuh / kecil ===== */
@media (hover: none), (pointer: coarse), (max-width: 900px) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .modal-overlay, .sidebar-overlay, .swal2-container.swal2-backdrop-show { background: rgba(3, 6, 14, 0.82) !important; }
  .content-section, .content-section > *, .stats-grid > *, .dashboard-layout > *,
  .brand-logo, .brand h1, .brand > p, .brand-list li, .price-box { animation: none !important; }
  .stat-card:hover, .menu-item:hover, .brand-list li:hover { transform: none !important; }
  .card, .stat-card, .menu-item, .btn-submit, .btn-modal { transition-property: background-color, color, border-color, opacity !important; }
  .btn-submit, .btn-modal { box-shadow: 0 4px 12px -6px rgba(14, 165, 233, 0.6) !important; }
}
