/* ==========================================================================
   Nge-Meal. - Modern F&B Multi-Outlet Analytics & Cost Control Dashboard
   Color Palette & Theme inspired by Nge-Meal Food Delivery Admin
   ========================================================================== */

:root {
  /* Brand Theme Tokens */
  --bg-app: #F8F9FD;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFFFFF;
  --bg-sidebar: #FFFFFF;
  --bg-input: #F8F9FD;
  
  /* Primary & Accent Colors */
  --brand-yellow: #F8B602;
  --brand-yellow-hover: #E5A700;
  --brand-yellow-light: #FFF9E6;
  --brand-yellow-glow: 0 6px 20px rgba(248, 182, 2, 0.35);
  
  --brand-orange: #FA8B0C;
  --brand-gradient: linear-gradient(135deg, #F8B602 0%, #FA8B0C 100%);
  --brand-gradient-subtle: linear-gradient(135deg, #FFF9E6 0%, #FFF2D1 100%);

  /* Status & Semantic Colors */
  --color-coral: #FF5B5B;
  --color-coral-light: #FFF0F0;
  --color-green: #00B074;
  --color-green-light: #E8F9F1;
  --color-blue: #2F80ED;
  --color-blue-light: #EEF6FF;
  --color-purple: #8950FC;
  --color-purple-light: #F3E8FF;

  /* Text Colors */
  --text-title: #1C1D21;
  --text-body: #464E5F;
  --text-muted: #8F92A1;
  --text-light: #B5B5C3;

  /* Borders & Shadows */
  --border-light: #EFF0F6;
  --border-focus: #F8B602;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.03);
  --shadow-card: 0 6px 24px rgba(149, 157, 165, 0.06), 0 1px 3px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 12px 32px rgba(149, 157, 165, 0.12);

  /* Geometry */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
  zoom: 0.9;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-body);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Dashboard Shell & Layout
   ========================================================================== */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  background-color: var(--bg-app);
}

/* ==========================================================================
   Sidebar Navigation & Control Center
   ========================================================================== */
.dashboard-sidebar {
  width: 290px;
  min-width: 290px;
  background: #FFFFFF;
  border-right: 1px solid var(--border-light);
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
  box-shadow: 1px 0 10px rgba(0, 0, 0, 0.02);
  transition: width 0.28s cubic-bezier(0.16, 1, 0.3, 1), min-width 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Collapsed / Minimalist State */
.dashboard-sidebar.collapsed {
  width: 70px;
  min-width: 70px;
}

/* Sidebar Header */
.sidebar-header {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.sidebar-brand-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.brand-logo-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 8px;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: var(--brand-yellow-glow);
}

.brand-logo-icon svg {
  width: 18px;
  height: 18px;
  stroke: #FFFFFF;
}

.sidebar-brand-text {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.dashboard-sidebar.collapsed .sidebar-brand-text {
  display: none;
}

.brand-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-title);
  line-height: 1;
}

.brand-title .brand-dot {
  color: var(--brand-yellow);
}

.brand-badge {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2.5px 6px;
  border-radius: var(--radius-pill);
  background: var(--brand-yellow-light);
  color: #B47D00;
}

.btn-toggle-sidebar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
  padding: 0;
  flex-shrink: 0;
}

.btn-toggle-sidebar:hover {
  background: var(--brand-yellow-light);
  color: var(--text-title);
  border-color: rgba(248, 182, 2, 0.4);
}

.toggle-icon-svg {
  width: 15px;
  height: 15px;
  transition: transform 0.25s ease;
}

.dashboard-sidebar.collapsed .sidebar-header .btn-toggle-sidebar .toggle-icon-svg {
  transform: rotate(180deg);
}

.dashboard-sidebar.collapsed .sidebar-header {
  padding: 16px 10px;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
}

/* Sidebar Body */
.sidebar-body {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scrollbar-width: thin;
  min-height: 0;
}

.sidebar-body::-webkit-scrollbar {
  width: 4px;
}
.sidebar-body::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 4px;
}

/* Hero Mini Card */
.sidebar-hero-card {
  background: var(--brand-gradient);
  border-radius: 10px;
  padding: 8px 10px;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(248, 182, 2, 0.25);
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.dashboard-sidebar.collapsed .sidebar-hero-card {
  display: none;
}

.sidebar-hero-card h3 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 1px;
}

.sidebar-hero-card p {
  font-size: 10px;
  opacity: 0.92;
  font-weight: 500;
  line-height: 1.25;
}

/* Sidebar Sections */
.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.sidebar-section-title {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 1px;
}

.section-icon-svg {
  width: 12px;
  height: 12px;
  stroke: var(--brand-yellow);
}

.dashboard-sidebar.collapsed .sidebar-section-title {
  display: none;
}

.sidebar-control-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dashboard-sidebar.collapsed .sidebar-control-group {
  display: none;
}

.sidebar-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-title);
}

.sidebar-select {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  color: var(--text-title);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4.5px 8px;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}

.sidebar-select:focus {
  border-color: var(--brand-yellow);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(248, 182, 2, 0.15);
}

.sidebar-date-inputs {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sidebar-input-date {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  color: var(--text-title);
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 600;
  padding: 3.5px 6px;
  outline: none;
  cursor: pointer;
  width: 100%;
  transition: var(--transition);
}

.sidebar-input-date:focus {
  border-color: var(--brand-yellow);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(248, 182, 2, 0.15);
}

/* Category Vertical List in Sidebar */
.sidebar-category-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dashboard-sidebar.collapsed .sidebar-category-list {
  align-items: center;
  gap: 6px;
}

.category-pill-card {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  color: var(--text-body);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.category-pill-card .cat-svg {
  width: 14px;
  height: 14px;
  stroke: var(--text-muted);
  flex-shrink: 0;
  transition: var(--transition);
}

.category-pill-card:hover {
  background: var(--brand-yellow-light);
  border-color: rgba(248, 182, 2, 0.35);
  color: var(--text-title);
}

.category-pill-card:hover .cat-svg {
  stroke: var(--brand-yellow);
}

.category-pill-card.active {
  background: #FFF8E6;
  border-color: var(--brand-yellow);
  color: #8C5400;
  box-shadow: 0 2px 8px rgba(248, 182, 2, 0.18);
}

.category-pill-card.active .cat-svg {
  stroke: #8C5400;
}

/* Collapsed category card */
.dashboard-sidebar.collapsed .category-pill-card {
  padding: 10px;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.dashboard-sidebar.collapsed .category-pill-card .cat-label {
  display: none;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 8px 12px;
  border-top: 1px solid var(--border-light);
  background: #FAFBFD;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
  margin-top: auto;
}

.dashboard-sidebar.collapsed .sidebar-footer {
  display: none;
}

.sidebar-meta-badges {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sidebar-pill-badge {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--text-muted);
  background: #FFFFFF;
  padding: 2.5px 6px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-meta-links {
  display: flex;
  gap: 6px;
}

.sidebar-meta-link {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  background: #FFF9F2;
  border: 1px solid rgba(250, 139, 12, 0.22);
  color: #D96B00;
  text-decoration: none;
  transition: var(--transition);
}

.sidebar-meta-link svg {
  stroke: #D96B00;
  transition: var(--transition);
}

.sidebar-meta-link:hover {
  background: var(--brand-gradient);
  border-color: #FA8B0C;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(250, 139, 12, 0.25);
  transform: translateY(-1px);
}

.sidebar-meta-link:hover svg {
  stroke: #FFFFFF;
}

/* ==========================================================================
   Main Dashboard Area & Header
   ========================================================================== */
.dashboard-main-area {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-app);
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(246, 247, 251, 0.95);
  backdrop-filter: blur(12px);
  padding: 10px 24px;
  border-bottom: 1px solid rgba(239, 240, 246, 0.85);
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-toggle {
  display: none;
  flex-shrink: 0;
}

.dashboard-sidebar.collapsed ~ .dashboard-main-area .topbar-toggle {
  display: flex;
}

.dashboard-content {
  padding: 20px 28px 48px;
  flex: 1;
}

/* ==========================================================================
   Navigation Tabs (Clean Pill Style, No Emojis, Fully Adaptive)
   ========================================================================== */
.nav-tabs {
  display: flex;
  flex: 1 1 auto;
  width: 100%;
  gap: 6px;
  background: var(--bg-card);
  padding: 4px 6px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  margin-bottom: 0;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nav-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  flex: 0 0 auto;
  min-width: max-content;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text-title);
  background: var(--brand-yellow-light);
}

.tab-btn.active {
  background: var(--brand-yellow);
  color: var(--text-title);
  box-shadow: var(--brand-yellow-glow);
}

/* ==========================================================================
   KPI Cards Grid (Compact Single-Row Values, No Wrap)
   ========================================================================== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

@media (min-width: 1800px) {
  .kpi-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 580px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(248, 182, 2, 0.35);
}

.kpi-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 6px;
  gap: 4px;
  width: 100%;
}

.kpi-title {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  white-space: normal;
  line-height: 1.35;
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.kpi-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 22px;
  width: 100%;
}

.kpi-value {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-title);
  margin-bottom: 6px;
  white-space: nowrap;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  width: 100%;
}

.kpi-currency {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.kpi-delta {
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 2.5px 8px;
  border-radius: var(--radius-pill);
  width: fit-content;
  max-width: 100%;
  white-space: nowrap;
  margin: 2px auto;
}

.kpi-delta.good {
  color: var(--color-green);
  background: var(--color-green-light);
}

.kpi-delta.bad {
  color: var(--color-coral);
  background: var(--color-coral-light);
}

.kpi-delta.neutral {
  color: var(--text-muted);
  background: var(--bg-input);
}

.kpi-subtext {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 6px;
  white-space: normal;
  line-height: 1.4;
  text-align: center;
  width: 100%;
}

/* ==========================================================================
   Panels, Cards & Charts Layout
   ========================================================================== */
.chart-panel-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 20px;
  margin-bottom: 22px;
  min-width: 0;
}

.full-width-panel {
  grid-column: 1 / -1;
  min-width: 0;
}

.panel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  min-width: 0;
  max-width: 100%;
}

.panel-card:hover {
  box-shadow: var(--shadow-hover);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}

.panel-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-title);
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-desc {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 2px;
}

.panel-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.chart-wrapper {
  position: relative;
  width: 100%;
  min-height: 320px;
  flex: 1;
}

/* ==========================================================================
   Tables & Data Explorer
   ========================================================================== */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: #FFFFFF;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.data-table th {
  background: #F8F9FD;
  padding: 11px 14px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-title);
  font-weight: 500;
  white-space: nowrap;
}

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

.data-table tr:hover td {
  background: #FFFDF8;
}

/* Badges for Menu Classes & Status */
.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.badge-star {
  background: var(--brand-yellow-light);
  color: #B47D00;
  border: 1px solid rgba(248, 182, 2, 0.4);
}

.badge-plowhorse {
  background: var(--color-blue-light);
  color: var(--color-blue);
  border: 1px solid rgba(47, 128, 237, 0.3);
}

.badge-puzzle {
  background: var(--color-purple-light);
  color: var(--color-purple);
  border: 1px solid rgba(137, 80, 252, 0.3);
}

.badge-dog {
  background: var(--color-coral-light);
  color: var(--color-coral);
  border: 1px solid rgba(255, 91, 91, 0.3);
}

.badge-status-ok {
  background: var(--color-green-light);
  color: var(--color-green);
  font-weight: 700;
}

.badge-status-warn {
  background: var(--brand-yellow-light);
  color: #B47D00;
  font-weight: 700;
}

.badge-status-critical {
  background: var(--color-coral-light);
  color: var(--color-coral);
  font-weight: 700;
}

/* ==========================================================================
   Alert Boxes
   ========================================================================== */
.alert-box {
  background: var(--color-coral-light);
  border: 1px solid rgba(255, 91, 91, 0.25);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.alert-box.info {
  background: var(--brand-yellow-light);
  border-color: rgba(248, 182, 2, 0.3);
}

.alert-content h4 {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-title);
  margin-bottom: 2px;
}

.alert-content p {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-body);
}

/* ==========================================================================
   Simulator Controls
   ========================================================================== */
.simulator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.slider-group {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-title);
}

.slider-val {
  color: var(--brand-yellow);
  font-weight: 800;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--brand-yellow);
  cursor: pointer;
}

/* ==========================================================================
   Heatmap (Golden Warm Tone)
   ========================================================================== */
.heatmap-container {
  display: grid;
  grid-template-columns: 80px repeat(24, 1fr);
  gap: 4px;
  font-size: 11px;
  text-align: center;
  overflow-x: auto;
  padding: 12px 0;
}

.heatmap-cell {
  height: 30px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: transform 0.15s ease;
  cursor: default;
}

.heatmap-cell:hover {
  transform: scale(1.15);
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.heatmap-day-label {
  display: flex;
  align-items: center;
  font-weight: 700;
  color: var(--text-title);
  text-align: left;
}

.heatmap-hour-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  padding-bottom: 6px;
}

/* ==========================================================================
   Tab Visibility & Animations
   ========================================================================== */
.tab-section {
  display: none;
}

.tab-section.active {
  display: block;
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Disclaimer / data notes */
.data-note {
  display: block;
  margin-top: 6px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
  color: #8C5400;
  background: #FFF9F2;
  border-left: 3px solid #FA8B0C;
  border-radius: 4px;
}

.data-note-wide {
  grid-column: 1 / -1;
  margin-top: 0;
}

.data-note-compact {
  font-size: 10px;
  padding: 4px 8px;
  margin-top: 2px;
}

.dashboard-sidebar.collapsed .data-note {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
  .dashboard-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    transform: translateX(-100%);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
  }
  .dashboard-sidebar.mobile-open {
    transform: translateX(0);
  }
  .topbar-toggle {
    display: flex;
  }
  .dashboard-content {
    padding: 16px 16px 40px;
  }
  .main-header {
    padding: 10px 16px;
  }
  .chart-panel-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .header-actions {
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .filter-group {
    width: 100%;
    justify-content: space-between;
  }
  .split-panel,
  .sim-grid {
    grid-template-columns: 1fr !important;
  }
  .table-responsive,
  .table-container {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    min-width: 0;
  }
  .table-container .data-table {
    min-width: 480px;
  }
  .panel-card {
    min-width: 0;
    max-width: 100%;
    padding: 16px;
  }
}

@media (max-width: 580px) {
  .main-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .topbar-nav {
    width: 100%;
  }
  .kpi-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .tab-btn {
    padding: 6px 10px;
    font-size: 12px;
  }
}
