:root {
  /* Theme: Ocean Blue (default) */
  --brand-primary: #0ea5e9;
  --brand-secondary: #0284c7;
  --brand-accent: #e0f2fe;
  --brand-dark: #0c4a6e;
  --grad-primary: linear-gradient(135deg, #0ea5e9, #0284c7);
  --grad-sidebar: linear-gradient(180deg, #0c4a6e 0%, #075985 100%);
  
  /* Neutral */
  --bg-main: #f1f5f9;
  --bg-card: #ffffff;
  --bg-sidebar: var(--grad-sidebar);
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --text-white: #ffffff;
  --border-color: #e2e8f0;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --border-radius-lg: 16px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  
  /* Layout */
  --sidebar-width: 260px;
  --topbar-height: 64px;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
}

[data-theme="green"] {
  --brand-primary: #22c55e;
  --brand-secondary: #16a34a;
  --brand-accent: #dcfce7;
  --brand-dark: #14532d;
  --grad-primary: linear-gradient(135deg, #22c55e, #16a34a);
  --grad-sidebar: linear-gradient(180deg, #14532d 0%, #166534 100%);
}
[data-theme="red"] {
  --brand-primary: #ef4444;
  --brand-secondary: #dc2626;
  --brand-accent: #fee2e2;
  --brand-dark: #7f1d1d;
  --grad-primary: linear-gradient(135deg, #ef4444, #dc2626);
  --grad-sidebar: linear-gradient(180deg, #7f1d1d 0%, #991b1b 100%);
}
[data-theme="orange"] {
  --brand-primary: #f97316;
  --brand-secondary: #ea580c;
  --brand-accent: #ffedd5;
  --brand-dark: #7c2d12;
  --grad-primary: linear-gradient(135deg, #f97316, #ea580c);
  --grad-sidebar: linear-gradient(180deg, #7c2d12 0%, #9a3412 100%);
}
[data-theme="purple"] {
  --brand-primary: #a855f7;
  --brand-secondary: #9333ea;
  --brand-accent: #f3e8ff;
  --brand-dark: #581c87;
  --grad-primary: linear-gradient(135deg, #a855f7, #9333ea);
  --grad-sidebar: linear-gradient(180deg, #581c87 0%, #6b21a8 100%);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  overflow: hidden;
}
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}
::selection {
  background: var(--brand-accent);
  color: var(--brand-dark);
}

/* Layout Components */
.app-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  color: var(--text-white);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  z-index: 100;
  transition: transform var(--transition-normal);
}

.sidebar-logo {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-logo h1 {
  font-size: 18px;
  font-weight: 700;
}
.sidebar-logo p {
  font-size: 12px;
  opacity: 0.7;
}

.sidebar-nav {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
}

.nav-section-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.4;
  padding: 16px 12px 6px;
  font-weight: 600;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--border-radius-sm);
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: var(--transition-fast);
  font-size: 13.5px;
  font-weight: 500;
}
.nav-item:hover {
  background: rgba(255,255,255,0.1);
  color: white;
}
.nav-item.active {
  background: rgba(255,255,255,0.15);
  color: white;
  font-weight: 600;
}

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

.nav-badge {
  margin-left: auto;
  background: #ef4444;
  color: white;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

.time-display {
  font-size: 28px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.date-display {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 2px;
}

.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  transition: margin-left var(--transition-normal);
}

.topbar {
  height: var(--topbar-height);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  flex-shrink: 0;
}

.topbar-title {
  font-size: 18px;
  font-weight: 700;
}

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

.page-content {
  flex: 1;
  padding: 20px 24px;
  overflow-y: auto;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 14px;
}

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

.stat-value {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--border-radius-sm);
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition-fast);
  text-decoration: none;
}
.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--grad-primary);
  color: white;
  box-shadow: 0 2px 8px rgba(14,165,233,0.3);
}

.btn-secondary {
  background: var(--bg-main);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-success {
  background: #22c55e;
  color: white;
}

.btn-danger {
  background: #ef4444;
  color: white;
}

.btn-warning {
  background: #f59e0b;
  color: white;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* Cards & Sections */
.card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
}

.card-body {
  padding: 20px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: 16px;
  font-weight: 700;
}

/* Forms */
.form-group {
  margin-bottom: 16px;
}

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

.form-control, .form-select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  font-family: inherit;
  font-size: 14px;
  transition: var(--transition-fast);
  background: var(--bg-card);
  color: var(--text-primary);
  box-sizing: border-box;
}
.form-control:focus, .form-select:focus {
  border-color: var(--brand-primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--brand-accent);
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Tables */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  background: var(--bg-main);
  color: var(--text-secondary);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-color);
}
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}
.data-table tr:hover {
  background: rgba(14,165,233,0.03);
}
.data-table tr:last-child td {
  border-bottom: none;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(0.95);
  transition: var(--transition-normal);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-lg {
  max-width: 900px;
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.modal-header h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: var(--bg-main);
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}
.modal-close:hover {
  background: #fee2e2;
  color: #ef4444;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

/* Badges & Tags */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.badge-success { background: #dcfce7; color: #15803d; }
.badge-danger { background: #fee2e2; color: #b91c1c; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-info { background: #e0f2fe; color: #0369a1; }
.badge-purple { background: #f3e8ff; color: #7c3aed; }

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 14px 20px;
  border-radius: var(--border-radius-sm);
  color: white;
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s ease;
  min-width: 280px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.toast-success { background: #22c55e; }
.toast.toast-error { background: #ef4444; }
.toast.toast-warning { background: #f59e0b; }
.toast.toast-info { background: #0ea5e9; }

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

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

/* Dashboard Specific */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  height: calc(100vh - var(--topbar-height) - 140px - 40px);
  min-height: 500px;
}

.panel-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

/* Meja (Table Floor Plan) */
.meja-wrapper {
  position: relative;
  flex: 1;
  background: var(--bg-main);
  border-radius: var(--border-radius);
  border: 2px dashed var(--border-color);
  overflow: hidden;
  min-height: 400px;
}

.meja-item {
  position: absolute;
  width: 100px;
  height: 80px;
  border-radius: var(--border-radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: box-shadow var(--transition-fast);
  font-weight: 600;
  font-size: 13px;
  border: 2px solid transparent;
  user-select: none;
}
.meja-item:hover {
  box-shadow: var(--shadow-md);
  transform: scale(1.03);
}
.meja-item.meja-kosong { background: #dcfce7; border-color: #86efac; color: #15803d; }
.meja-item.meja-terisi { background: #fee2e2; border-color: #fca5a5; color: #b91c1c; }
.meja-item.meja-booking { background: #fef3c7; border-color: #fcd34d; color: #92400e; }
.meja-item.meja-cleaning { background: #e0f2fe; border-color: #7dd3fc; color: #0369a1; }
.meja-item.meja-panggil { animation: blink 1s infinite; }

.meja-name {
  font-weight: 700;
  font-size: 14px;
}

.meja-status-text {
  font-size: 10px;
  opacity: 0.8;
  margin-top: 2px;
}

.meja-edit-btn {
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 11px;
  cursor: pointer;
  opacity: 0.5;
}
.meja-edit-btn:hover {
  opacity: 1;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Order Panel (right side) */
.order-tabs {
  display: flex;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 12px;
}

.order-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition-fast);
}
.order-tab.active {
  color: var(--brand-primary);
  border-bottom-color: var(--brand-primary);
}

.order-card {
  padding: 14px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 8px;
  background: var(--bg-card);
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.order-card-meja {
  font-weight: 700;
  font-size: 14px;
}

.order-card-time {
  font-size: 11px;
  color: var(--text-muted);
}

.order-card-items {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.order-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}

.order-card-total {
  font-weight: 700;
  color: var(--brand-primary);
}

/* Menu Grid (for menu.html and order modal) */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.menu-card {
  background: var(--bg-card);
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-fast);
}
.menu-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.menu-card.unavailable {
  opacity: 0.5;
  pointer-events: none;
}

.menu-card-img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  background: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.menu-card-body {
  padding: 10px 12px;
}

.menu-card-name {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-card-price {
  font-weight: 700;
  color: var(--brand-primary);
  font-size: 14px;
}

.menu-card-stock {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Kitchen Display */
.kitchen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  padding: 20px;
}

.kitchen-ticket {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  border: 2px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.kitchen-ticket-header {
  padding: 14px 16px;
  background: var(--grad-primary);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kitchen-ticket-meja {
  font-weight: 700;
  font-size: 18px;
}

.kitchen-ticket-time {
  font-size: 13px;
  font-weight: 600;
}
.kitchen-ticket-time.time-warning {
  color: #fef3c7;
}
.kitchen-ticket-time.time-critical {
  color: #fee2e2;
  animation: blink 0.5s infinite;
}

.kitchen-ticket-body {
  padding: 16px;
}

.kitchen-ticket-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  font-size: 15px;
}
.kitchen-ticket-item:last-child {
  border-bottom: none;
}

.kitchen-ticket-qty {
  font-weight: 700;
  color: var(--brand-primary);
  min-width: 30px;
}

.kitchen-ticket-note {
  font-size: 12px;
  color: var(--text-secondary);
  font-style: italic;
  padding: 4px 0;
}

.kitchen-ticket-actions {
  padding: 12px 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 8px;
}

/* Category Tabs/Filters */
.category-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.category-tab {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  transition: var(--transition-fast);
}
.category-tab.active, .category-tab:hover {
  background: var(--brand-primary);
  color: white;
  border-color: var(--brand-primary);
}

/* Search Input */
.search-box {
  position: relative;
}

.search-box input {
  padding-left: 36px;
}

.search-box::before {
  content: "🔍";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--text-muted);
}

/* Cart / Order Items in Modal */
.cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.cart-item-name {
  flex: 1;
  font-weight: 500;
  font-size: 13px;
}

.cart-qty-control {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: var(--bg-main);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-qty-btn:hover {
  background: var(--brand-accent);
  border-color: var(--brand-primary);
}

.cart-item-total {
  font-weight: 700;
  font-size: 13px;
  min-width: 80px;
  text-align: right;
}

/* Login Page */
.login-container {
  display: flex;
  height: 100vh;
}

.login-brand {
  flex: 1;
  background: var(--grad-sidebar);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  padding: 40px;
}

.login-brand-logo {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  margin-bottom: 24px;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
}

.login-brand h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

.login-brand p {
  font-size: 14px;
  opacity: 0.8;
}

.login-form-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.login-form {
  width: 100%;
  max-width: 380px;
}

.login-form h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.login-form p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 14px;
}

/* Payment Modal Specifics */
.payment-summary {
  background: var(--bg-main);
  border-radius: var(--border-radius-sm);
  padding: 16px;
  margin-bottom: 16px;
}

.payment-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
}
.payment-row.total-row {
  font-weight: 700;
  font-size: 16px;
  border-top: 2px solid var(--border-color);
  padding-top: 12px;
  margin-top: 8px;
}

.payment-methods {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.payment-method-btn {
  flex: 1;
  padding: 12px;
  border-radius: var(--border-radius-sm);
  border: 2px solid var(--border-color);
  background: var(--bg-card);
  cursor: pointer;
  text-align: center;
  font-weight: 600;
  font-size: 13px;
  transition: var(--transition-fast);
}
.payment-method-btn.active, .payment-method-btn:hover {
  border-color: var(--brand-primary);
  background: var(--brand-accent);
  color: var(--brand-primary);
}

.cash-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.cash-shortcut-btn {
  padding: 10px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  cursor: pointer;
  text-align: center;
  font-weight: 600;
  font-size: 13px;
}
.cash-shortcut-btn:hover {
  background: var(--brand-accent);
  border-color: var(--brand-primary);
}

/* Utility Classes */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-success { color: #22c55e; }
.text-danger { color: #ef4444; }
.text-warning { color: #f59e0b; }
.text-muted { color: var(--text-muted); }
.text-brand { color: var(--brand-primary); }
.fw-bold { font-weight: 700; }
.fw-semibold { font-weight: 600; }

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }

.gap-1 { gap: 8px; }
.gap-2 { gap: 12px; }
.gap-3 { gap: 16px; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }

/* Loading Spinner */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border-color);
  border-top-color: var(--brand-primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  from { rotate: 0deg; }
  to { rotate: 360deg; }
}

/* Mobile Hamburger */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 200;
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  font-size: 20px;
  align-items: center;
  justify-content: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
    height: auto;
  }
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-toggle {
    display: flex;
  }
  .main-content {
    margin-left: 0;
  }
  .topbar-actions {
    flex-wrap: wrap;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .login-container {
    flex-direction: column;
  }
  .login-brand {
    display: none;
  }
  .menu-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  .modal {
    width: 95%;
    max-height: 95vh;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .topbar-title {
    font-size: 14px;
  }
}
body { overflow-y: auto !important; height: auto !important; }
