/* ============================================================
   RestroSuite Ultimate – App Stylesheet
   Author: Mr Arslan CEO | https://codester.com/mrdigitalceo
   ============================================================ */

/* ── Variables ──────────────────────────────────────────── */
:root {
  --primary:       #FF6B35;
  --primary-dark:  #e55a26;
  --primary-light: #fff3ee;
  --accent:        #00C9A7;
  --danger:        #E74C3C;
  --warning:       #F39C12;
  --success:       #27AE60;
  --info:          #3498DB;

  --bg:            #F7F8FC;
  --surface:       #FFFFFF;
  --surface2:      #F0F2F7;
  --border:        #E2E8F0;
  --text:          #1A1D23;
  --text-muted:    #6B7280;
  --text-light:    #9CA3AF;

  --sidebar-bg:    #1A1D23;
  --sidebar-text:  #CBD5E0;
  --sidebar-hover: rgba(255,107,53,0.12);
  --sidebar-active:#FF6B35;

  --radius:        12px;
  --radius-sm:     8px;
  --radius-lg:     16px;
  --shadow:        0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.04);
  --shadow-md:     0 4px 6px rgba(0,0,0,.07), 0 10px 30px rgba(0,0,0,.08);
  --shadow-lg:     0 20px 60px rgba(0,0,0,.12);

  --sidebar-w:     260px;
  --topbar-h:      64px;
  --transition:    0.2s ease;
  --font:          'Inter', system-ui, -apple-system, sans-serif;
}

[data-theme="dark"] {
  --bg:         #0F1117;
  --surface:    #1A1D23;
  --surface2:   #252832;
  --border:     #2D3041;
  --text:       #F1F5F9;
  --text-muted: #94A3B8;
  --text-light: #64748B;
  --shadow:     0 1px 3px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
  --shadow-md:  0 4px 6px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.3);
  --primary-light: rgba(255,107,53,0.15);
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; min-height: 100vh; overflow-x: hidden; }
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
ul { list-style: none; }

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

/* ── Sidebar ────────────────────────────────────────────── */
.sidebar {
  position: fixed; top: 0; left: 0; height: 100vh; width: var(--sidebar-w);
  background: var(--sidebar-bg); display: flex; flex-direction: column;
  z-index: 100; transition: transform var(--transition), width var(--transition);
  overflow: hidden;
}
.sidebar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 16px; border-bottom: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}
.logo { display: flex; align-items: center; gap: 12px; overflow: hidden; }
.logo-icon { font-size: 28px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-size: 15px; font-weight: 700; color: #fff; white-space: nowrap; }
.logo-tagline { font-size: 11px; color: var(--primary); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.sidebar-toggle { color: var(--sidebar-text); font-size: 20px; padding: 4px; border-radius: 6px; transition: color var(--transition); }
.sidebar-toggle:hover { color: #fff; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 12px 0; }
.nav-section-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.3); padding: 12px 20px 4px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  margin: 1px 8px; border-radius: var(--radius-sm); color: var(--sidebar-text);
  font-size: 14px; font-weight: 500; transition: all var(--transition); white-space: nowrap;
}
.nav-item:hover { background: var(--sidebar-hover); color: #fff; }
.nav-item.active { background: rgba(255,107,53,.15); color: var(--sidebar-active); }
.nav-item.active .nav-icon { filter: none; }
.nav-icon { font-size: 18px; flex-shrink: 0; }
.sidebar-footer { padding: 12px 20px; border-top: 1px solid rgba(255,255,255,.06); }
.version { font-size: 11px; color: rgba(255,255,255,.2); }

/* Collapsed sidebar */
.sidebar.collapsed { width: 68px; }
.sidebar.collapsed .logo-text,
.sidebar.collapsed .nav-label,
.sidebar.collapsed .nav-section-label { display: none; }
.sidebar.collapsed .nav-item { justify-content: center; padding: 12px; }
.sidebar.collapsed .nav-icon { font-size: 20px; }

/* ── Main Wrapper ────────────────────────────────────────── */
.main-wrapper {
  margin-left: var(--sidebar-w); min-height: 100vh;
  transition: margin-left var(--transition);
  display: flex; flex-direction: column;
}
.main-wrapper.collapsed { margin-left: 68px; }

/* ── Topbar ──────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50; height: var(--topbar-h);
  background: var(--surface); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; gap: 16px; box-shadow: var(--shadow);
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.page-title { font-size: 18px; font-weight: 600; color: var(--text); }
.topbar-right { display: flex; align-items: center; gap: 8px; }

.btn-icon {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); color: var(--text-muted); font-size: 16px;
  transition: all var(--transition); background: transparent;
}
.btn-icon:hover { background: var(--surface2); color: var(--text); }

/* ── Notifications ───────────────────────────────────────── */
.notif-wrap { position: relative; }
.notif-btn { position: relative; }
.notif-badge {
  position: absolute; top: 4px; right: 4px; background: var(--danger); color: #fff;
  font-size: 10px; font-weight: 700; min-width: 16px; height: 16px;
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
}
.notif-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); width: 320px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.notif-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.notif-list { max-height: 300px; overflow-y: auto; }
.notif-item { padding: 12px 16px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background var(--transition); }
.notif-item:hover { background: var(--surface2); }
.notif-item.unread { background: var(--primary-light); }
.notif-title { font-size: 13px; font-weight: 600; color: var(--text); }
.notif-msg { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.notif-time { font-size: 11px; color: var(--text-light); margin-top: 4px; }
.notif-empty { padding: 24px; text-align: center; color: var(--text-muted); font-size: 13px; }

/* ── User Menu ───────────────────────────────────────────── */
.user-menu { position: relative; }
.user-btn {
  display: flex; align-items: center; gap: 10px; padding: 6px 10px;
  border-radius: var(--radius-sm); cursor: pointer; transition: background var(--transition);
}
.user-btn:hover { background: var(--surface2); }
.user-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--primary);
  color: #fff; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.user-info { display: flex; flex-direction: column; }
.user-name { font-size: 13px; font-weight: 600; color: var(--text); }
.user-role { font-size: 11px; color: var(--text-muted); text-transform: capitalize; }
.user-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden; z-index: 99;
}
.dd-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; font-size: 13px; color: var(--text); transition: background var(--transition); }
.dd-item:hover { background: var(--surface2); }
.logout-item:hover { background: #fef2f2; color: var(--danger); }

/* ── Page Content ────────────────────────────────────────── */
.page-content { flex: 1; padding: 24px; }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.card-title { font-size: 15px; font-weight: 600; color: var(--text); }
.card-body { padding: 20px; }

/* ── Stat Cards ──────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; display: flex; align-items: flex-start; gap: 16px; box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.stat-icon.orange { background: #FFF3EE; }
.stat-icon.green  { background: #EAFAF1; }
.stat-icon.blue   { background: #EBF5FB; }
.stat-icon.purple { background: #F5EEF8; }
.stat-icon.red    { background: #FDEDEC; }
.stat-info { flex: 1; min-width: 0; }
.stat-value { font-size: 26px; font-weight: 700; color: var(--text); line-height: 1.2; }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.stat-change { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; margin-top: 6px; padding: 2px 8px; border-radius: 20px; }
.stat-change.up { background: #EAFAF1; color: var(--success); }
.stat-change.down { background: #FDEDEC; color: var(--danger); }
.stat-change.neutral { background: var(--surface2); color: var(--text-muted); }

/* ── Grid Layouts ────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 18px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500;
  transition: all var(--transition); white-space: nowrap;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary   { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); }
.btn-success   { background: var(--success); color: #fff; }
.btn-success:hover:not(:disabled) { background: #219653; }
.btn-danger    { background: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #c0392b; }
.btn-warning   { background: var(--warning); color: #fff; }
.btn-info      { background: var(--info); color: #fff; }
.btn-outline   { border: 1px solid var(--border); color: var(--text); background: transparent; }
.btn-outline:hover:not(:disabled) { background: var(--surface2); }
.btn-ghost     { color: var(--text-muted); background: transparent; }
.btn-ghost:hover:not(:disabled) { background: var(--surface2); color: var(--text); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 12px 24px; font-size: 15px; }
.btn-text { background: none; color: var(--primary); font-size: 13px; font-weight: 500; }
.btn-text:hover { text-decoration: underline; }
.btn-block { width: 100%; }

/* ── Form Controls ───────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.form-label span { color: var(--danger); }
.form-control {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 14px; color: var(--text);
  background: var(--surface); transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,107,53,.12); }
.form-control::placeholder { color: var(--text-light); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
textarea.form-control { resize: vertical; min-height: 90px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236B7280'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }

/* ── Tables ──────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th { padding: 10px 16px; text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); background: var(--surface2); border-bottom: 1px solid var(--border); white-space: nowrap; }
tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--surface2); }

/* ── Badges ──────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge-success  { background: #EAFAF1; color: #1E8449; }
.badge-warning  { background: #FEF9E7; color: #9A7D0A; }
.badge-danger   { background: #FDEDEC; color: #922B21; }
.badge-info     { background: #EBF5FB; color: #1A5276; }
.badge-primary  { background: var(--primary-light); color: var(--primary-dark); }
.badge-muted    { background: var(--surface2); color: var(--text-muted); }
.badge-orange   { background: #FFF3EE; color: #C05621; }
.badge-purple   { background: #F5EEF8; color: #7D3C98; }

/* ── Tabs ────────────────────────────────────────────────── */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 20px; overflow-x: auto; }
.tab-btn { padding: 10px 16px; font-size: 14px; font-weight: 500; color: var(--text-muted); border: none; background: none; cursor: pointer; white-space: nowrap; position: relative; transition: color var(--transition); }
.tab-btn.active { color: var(--primary); }
.tab-btn.active::after { content:''; position:absolute; bottom:-2px; left:0; right:0; height:2px; background:var(--primary); border-radius:2px 2px 0 0; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Modal ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  animation: fadeIn .15s ease;
}
.modal {
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  width: 100%; max-width: 560px; max-height: 90vh; display: flex; flex-direction: column;
  animation: slideUp .2s ease;
}
.modal-lg { max-width: 760px; }
.modal-xl { max-width: 960px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.modal-header h3 { font-size: 16px; font-weight: 600; }
.modal-close { width: 32px; height: 32px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--text-muted); transition: all var(--transition); }
.modal-close:hover { background: var(--surface2); color: var(--text); }
.modal-body { flex: 1; overflow-y: auto; padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; flex-shrink: 0; }

/* ── Alerts ──────────────────────────────────────────────── */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.alert-success { background: #EAFAF1; color: #196F3D; border: 1px solid #A9DFBF; }
.alert-error   { background: #FDEDEC; color: #922B21; border: 1px solid #F1948A; }
.alert-warning { background: #FEF9E7; color: #9A7D0A; border: 1px solid #F9E79F; }
.alert-info    { background: #EBF5FB; color: #1A5276; border: 1px solid #AED6F1; }

/* ── Toast ───────────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  min-width: 280px; max-width: 380px; padding: 14px 18px; border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow-lg); border-left: 4px solid var(--info);
  display: flex; align-items: center; gap: 12px; animation: slideInRight .25s ease;
  font-size: 14px; color: var(--text);
}
.toast.toast-success { border-color: var(--success); }
.toast.toast-error   { border-color: var(--danger); }
.toast.toast-warning { border-color: var(--warning); }
.toast-icon { font-size: 18px; flex-shrink: 0; }
.toast-msg  { flex: 1; }
.toast-close { color: var(--text-muted); font-size: 16px; cursor: pointer; flex-shrink: 0; }
.toast-close:hover { color: var(--text); }

/* ── Loading Spinner ─────────────────────────────────────── */
.spinner { width: 20px; height: 20px; border: 2px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
.spinner-sm { width: 14px; height: 14px; }
.loading-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px; gap: 12px; color: var(--text-muted); }

/* ── Empty State ─────────────────────────────────────────── */
.empty-state { text-align: center; padding: 56px 24px; }
.empty-icon  { font-size: 48px; margin-bottom: 16px; }
.empty-title { font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.empty-desc  { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }

/* ── Search bar ──────────────────────────────────────────── */
.search-wrap { position: relative; }
.search-wrap .form-control { padding-left: 36px; }
.search-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); font-size: 16px; color: var(--text-muted); pointer-events: none; }

/* ── Page toolbar ────────────────────────────────────────── */
.page-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.toolbar-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toolbar-right { display: flex; align-items: center; gap: 10px; }

/* ── Pagination ──────────────────────────────────────────── */
.pagination { display: flex; align-items: center; gap: 6px; justify-content: center; padding: 16px 0; }
.page-btn { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; color: var(--text-muted); border: 1px solid var(--border); transition: all var(--transition); }
.page-btn:hover { background: var(--surface2); color: var(--text); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── Login Page ──────────────────────────────────────────── */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1A1D23 0%, #2D3041 50%, #1A1D23 100%); }
.login-box { width: 100%; max-width: 420px; padding: 16px; }
.login-card { background: var(--surface); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-lg); }
.login-logo { text-align: center; margin-bottom: 32px; }
.login-logo .logo-icon { font-size: 48px; display: block; margin-bottom: 12px; }
.login-logo h1 { font-size: 24px; font-weight: 700; color: var(--text); }
.login-logo p { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.login-error { background: #FDEDEC; color: #922B21; padding: 12px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 16px; border: 1px solid #F1948A; display: none; }

/* ── Animations ──────────────────────────────────────────── */
@keyframes fadeIn    { from { opacity:0 } to { opacity:1 } }
@keyframes slideUp   { from { transform:translateY(20px); opacity:0 } to { transform:translateY(0); opacity:1 } }
@keyframes slideInRight { from { transform:translateX(100%); opacity:0 } to { transform:translateX(0); opacity:1 } }
@keyframes spin      { to { transform:rotate(360deg) } }
@keyframes pulse     { 0%,100% { opacity:1 } 50% { opacity:.5 } }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.mobile-open { transform: translateX(0); }
  .main-wrapper { margin-left: 0; }
  .main-wrapper.collapsed { margin-left: 0; }
  .page-content { padding: 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .topbar { padding: 0 16px; }
  .user-info { display: none; }
  .modal { max-width: 100%; margin: 8px; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .page-toolbar { flex-direction: column; align-items: stretch; }
}

/* ── POS Specific ────────────────────────────────────────── */
.pos-layout { display: grid; grid-template-columns: 1fr 380px; gap: 0; height: calc(100vh - var(--topbar-h)); margin: -24px; }
.pos-menu { overflow-y: auto; padding: 20px; background: var(--bg); }
.pos-cart { background: var(--surface); border-left: 1px solid var(--border); display: flex; flex-direction: column; }
.menu-categories { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.cat-btn { padding: 7px 14px; border-radius: 20px; font-size: 13px; font-weight: 500; border: 1px solid var(--border); color: var(--text-muted); background: var(--surface); transition: all var(--transition); }
.cat-btn.active, .cat-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 12px; }
.menu-item-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; cursor: pointer; transition: all var(--transition); display: flex; flex-direction: column; gap: 8px;
}
.menu-item-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.menu-item-card.unavailable { opacity: 0.5; cursor: not-allowed; }
.item-emoji { font-size: 28px; }
.item-name { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.3; }
.item-price { font-size: 15px; font-weight: 700; color: var(--primary); }
.item-cat { font-size: 11px; color: var(--text-muted); }

/* Cart */
.cart-header { padding: 16px 20px; border-bottom: 1px solid var(--border); }
.cart-title { font-size: 15px; font-weight: 600; }
.cart-items { flex: 1; overflow-y: auto; padding: 12px; }
.cart-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--radius-sm); border: 1px solid var(--border); margin-bottom: 8px; background: var(--bg); }
.cart-item-name { flex: 1; font-size: 13px; font-weight: 500; }
.cart-qty { display: flex; align-items: center; gap: 6px; }
.qty-btn { width: 26px; height: 26px; border-radius: 6px; background: var(--surface2); color: var(--text); font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: all var(--transition); }
.qty-btn:hover { background: var(--primary); color: #fff; }
.qty-val { font-size: 14px; font-weight: 600; min-width: 24px; text-align: center; }
.cart-item-price { font-size: 13px; font-weight: 600; color: var(--text); }
.cart-remove { color: var(--danger); font-size: 14px; }
.cart-empty { text-align: center; padding: 40px 20px; color: var(--text-muted); font-size: 14px; }
.cart-footer { padding: 16px 20px; border-top: 1px solid var(--border); }
.cart-totals { font-size: 13px; color: var(--text-muted); }
.cart-totals .row { display: flex; justify-content: space-between; padding: 3px 0; }
.cart-totals .total { font-size: 18px; font-weight: 700; color: var(--text); padding-top: 8px; border-top: 1px solid var(--border); margin-top: 6px; }
.cart-actions { display: flex; gap: 8px; margin-top: 12px; }

/* KDS */
.kds-page { background: #111; min-height: 100vh; color: #fff; }
.kds-header { background: #1a1a2e; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid #FF6B35; }
.kds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 16px; padding: 20px; }
.kds-card { background: #1e2030; border-radius: 12px; overflow: hidden; border: 1px solid #333; }
.kds-card-header { padding: 12px 16px; background: #FF6B35; display: flex; justify-content: space-between; align-items: center; }
.kds-order-num { font-weight: 700; font-size: 14px; }
.kds-time { font-size: 12px; opacity: .9; }
.kds-items { padding: 12px 16px; }
.kds-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #333; }
.kds-item:last-child { border-bottom: none; }
.kds-item-qty { width: 28px; height: 28px; background: #FF6B35; color: #fff; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.kds-item-name { flex: 1; font-size: 14px; }
.kds-item-note { font-size: 12px; color: #F39C12; }
.kds-card-footer { padding: 12px 16px; border-top: 1px solid #333; display: flex; gap: 8px; }
.kds-btn { flex: 1; padding: 8px; border-radius: 6px; font-size: 12px; font-weight: 600; text-align: center; }
.kds-btn-fire  { background: #E74C3C; color: #fff; }
.kds-btn-ready { background: #27AE60; color: #fff; }
.kds-status-pending  { border-top: 3px solid #F39C12; }
.kds-status-preparing{ border-top: 3px solid #FF6B35; }
.kds-status-ready    { border-top: 3px solid #27AE60; }

/* Floor map */
.floor-map { position: relative; background: var(--surface2); border-radius: var(--radius); min-height: 450px; overflow: hidden; border: 1px solid var(--border); }
.table-node { position: absolute; cursor: pointer; transition: all var(--transition); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.table-node.square  { width: 80px; height: 80px; border-radius: 10px; }
.table-node.round   { width: 70px; height: 70px; border-radius: 50%; }
.table-node.rectangle { width: 120px; height: 70px; border-radius: 10px; }
.table-node.available  { background: #EAFAF1; border: 2px solid #27AE60; }
.table-node.occupied   { background: #FDEDEC; border: 2px solid #E74C3C; }
.table-node.reserved   { background: #FEF9E7; border: 2px solid #F39C12; }
.table-node.cleaning   { background: #EBF5FB; border: 2px solid #3498DB; }
.table-node:hover { transform: scale(1.05); box-shadow: var(--shadow-md); }
.table-number { font-size: 13px; font-weight: 700; }
.table-cap    { font-size: 11px; color: var(--text-muted); }

/* Dashboard charts */
.chart-container { position: relative; height: 260px; }

/* Scrollable panel */
.scroll-panel { overflow-y: auto; max-height: 400px; }

/* Membership badges */
.mem-bronze { background: #F5CBA7; color: #784212; }
.mem-silver { background: #D5D8DC; color: #424949; }
.mem-gold   { background: #F9E79F; color: #7D6608; }
.mem-vip    { background: #D2B4DE; color: #6C3483; }
