/* ===================================================
   CHINDOAPPS - Global Design System (Native Light Theme)
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

/* === CSS VARIABLES (Native iOS/Android Feel) === */
:root {
  --bg-primary: #F5F7FA;
  /* Light gray background like native apps */
  --bg-secondary: #FFFFFF;
  /* Pure white for surfaces */
  --bg-card: #FFFFFF;
  --bg-elevated: #FFFFFF;
  --sidebar-bg: #1B2623;
  /* Keep dark olive for sidebar to maintain brand identity */

  --color-action: #FF6B00;
  --color-action-dark: #E65A00;
  --color-accent: #FFB800;
  --color-accent-light: #FFD166;

  --text-primary: #1A1D1E;
  /* Almost black for high readability */
  --text-secondary: #5C6B64;
  /* Mid-gray for secondary text */
  --text-muted: #8B9D96;

  --border-color: rgba(0, 0, 0, 0.06);
  /* Very subtle borders */

  --success: #00C853;
  --danger: #FF3B30;
  /* iOS Red */
  --warning: #FF9500;
  /* iOS Orange/Yellow */
  --info: #007AFF;
  /* iOS Blue */

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.1);
  --shadow-float: 0 10px 30px rgba(255, 107, 0, 0.3);

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --sidebar-width: 260px;
  --sidebar-collapsed: 68px;
  --header-height: 60px;
  --bottom-bar: 76px;
  --transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  /* Snappy native-like transition */
}

/* === RESET & BASE === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: var(--color-action);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  opacity: 0.8;
}

img {
  max-width: 100%;
  height: auto;
}

/* === SCROLLBAR (Hidden for native feel) === */
::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}

/* ================================================
   DESKTOP ADMIN LAYOUT (Sidebar + Content)
   ================================================ */
.app-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  /* Dark brand identity */
  color: #FFF;
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}

.sidebar.collapsed {
  width: var(--sidebar-collapsed);
}

.sidebar.collapsed .sidebar-logo-text,
.sidebar.collapsed .nav-section-label,
.sidebar.collapsed .nav-item span:not(.nav-icon),
.sidebar.collapsed .user-info {
  display: none !important;
}

.sidebar.collapsed .sidebar-logo {
  padding: 20px 16px;
  justify-content: center;
}

.sidebar.collapsed .sidebar-toggle {
  display: none;
}

.sidebar.collapsed .nav-item {
  padding: 12px;
  justify-content: center;
  margin: 4px 8px;
}

.sidebar.collapsed .nav-item .nav-icon {
  margin: 0;
  font-size: 24px;
}

.sidebar.collapsed .user-card {
  padding: 12px;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
}

.sidebar.collapsed .user-card a {
  margin-left: 0 !important;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  min-height: var(--header-height);
}

.sidebar-logo-text h2 {
  font-size: 16px;
  font-weight: 800;
  color: #FFF;
  letter-spacing: -0.3px;
}

.sidebar-logo-text span {
  font-size: 11px;
  color: var(--color-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 0;
  overflow-y: auto;
}

.nav-section-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 16px 20px 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  margin: 4px 12px;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFF;
}

.nav-item.active {
  background: rgba(255, 107, 0, 0.15);
  color: var(--color-action);
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-action), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: white;
}

.user-info p {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.user-info span {
  font-size: 11px;
  color: var(--color-accent);
  font-weight: 600;
  text-transform: capitalize;
}

.sidebar-toggle {
  background: none;
  border: none;
  color: #FFF;
  cursor: pointer;
  font-size: 18px;
}

.main-content {
  margin-left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  min-height: 100vh;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.sidebar.collapsed~.main-content {
  margin-left: var(--sidebar-collapsed);
  width: calc(100% - var(--sidebar-collapsed));
}

.top-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.page-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  flex: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: var(--text-primary);
  transition: var(--transition);
  position: relative;
}

.icon-btn:active {
  transform: scale(0.92);
}

/* Native ripple feel */
.notification-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 10px;
  height: 10px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid #FFF;
}

.page-content {
  padding: 24px;
  flex: 1;
}

/* ================================================
   STATS / KPI CARDS
   ================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid transparent;
  /* removes hard border */
}

.stat-card:active {
  transform: scale(0.98);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
}

.stat-card.orange::before {
  background: var(--color-action);
}

.stat-card.yellow::before {
  background: var(--color-accent);
}

.stat-card.green::before {
  background: var(--success);
}

.stat-card.blue::before {
  background: var(--info);
}

.stat-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
}

.stat-value {
  font-size: 28px;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ================================================
   DASHBOARD GRID & CHARTS
   ================================================ */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.dashboard-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.chart-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.chart-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ================================================
   DATA TABLES
   ================================================ */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}

.card-body {
  padding: 24px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th {
  text-align: left;
  padding: 14px 20px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  background: #F8F9FA;
}

.data-table td {
  padding: 16px 20px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  font-weight: 500;
}

.data-table tbody tr:active {
  background: rgba(0, 0, 0, 0.02);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* ================================================
   STATUS BADGES
   ================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-pending {
  background: rgba(255, 149, 0, 0.12);
  color: var(--warning);
}

.status-processing {
  background: rgba(0, 122, 255, 0.12);
  color: var(--info);
}

.status-success {
  background: rgba(0, 200, 83, 0.12);
  color: var(--success);
}

.status-danger {
  background: rgba(255, 59, 48, 0.12);
  color: var(--danger);
}

.status-warning {
  background: rgba(255, 149, 0, 0.12);
  color: var(--warning);
}

.status-occupied {
  background: rgba(255, 59, 48, 0.12);
  color: var(--danger);
}

.status-default {
  background: var(--bg-primary);
  color: var(--text-secondary);
}

.sla-breach {
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.4);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  color: var(--danger);
  font-size: 11px;
  font-weight: 800;
  animation: pulse-red 2s infinite;
}

@keyframes pulse-red {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }
}

/* ================================================
   BUTTONS (Native Touch Targets)
   ================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 100px;
  /* highly rounded for native feel */
  font-size: 14px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
  min-height: 44px;
  /* iOS min touch target size */
}

.btn:active {
  transform: scale(0.96);
  opacity: 0.9;
}

.btn-primary {
  background: var(--color-action);
  color: #FFF;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.25);
}

.btn-accent {
  background: var(--color-accent);
  color: #000;
  box-shadow: 0 4px 12px rgba(255, 184, 0, 0.25);
}

.btn-ghost {
  background: var(--bg-primary);
  color: var(--text-primary);
}

.btn-danger {
  background: rgba(255, 59, 48, 0.1);
  color: var(--danger);
}

.btn-success {
  background: rgba(0, 200, 83, 0.1);
  color: var(--success);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  min-height: 36px;
}

.btn-lg {
  padding: 16px 24px;
  font-size: 16px;
}

.btn-full {
  width: 100%;
  display: flex;
}

/* ================================================
   FORMS
   ================================================ */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-primary);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  background: #FFF;
  border-color: var(--color-action);
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.1);
}

.form-control::placeholder {
  color: var(--text-muted);
}

/* ================================================
   MOBILE LAYOUT (App-like Feel)
   ================================================ */
.mobile-layout {
  min-height: 100vh;
  padding-bottom: var(--bottom-bar);
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg-primary);
  box-shadow: var(--shadow-lg);
}

.mobile-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border-color);
  z-index: 50;
}

.mobile-header h1 {
  font-size: 18px;
  font-weight: 800;
  flex: 1;
  color: var(--text-primary);
}

.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: var(--bottom-bar);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 12px 12px;
  z-index: 100;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.bottom-nav-item.active {
  color: var(--color-action);
}

.bottom-nav-item .nav-icon {
  font-size: 24px;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bottom-nav-item:active .nav-icon {
  transform: scale(0.8);
}

.fab {
  position: fixed;
  bottom: calc(var(--bottom-bar) + 24px);
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: var(--color-action);
  color: #FFF;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-float);
  z-index: 90;
  transition: transform 0.2s;
}

.fab:active {
  transform: scale(0.9);
}

/* ================================================
   CUSTOMER UI (Menu & Cart)
   ================================================ */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.menu-card {
  background: #FFF;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.15s ease;
  display: flex;
  flex-direction: column;
}

.menu-card:active {
  transform: scale(0.96);
}

.menu-card.disabled {
  opacity: 0.5;
  filter: grayscale(100%);
}

.menu-img-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.menu-info {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.menu-name {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-primary);
  line-height: 1.2;
}

.menu-price {
  font-size: 15px;
  font-weight: 900;
  color: var(--color-action);
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-primary);
  padding: 4px;
  border-radius: 100px;
  margin-top: auto;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FFF;
  border: none;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:active {
  transform: scale(0.9);
}

.qty-count {
  font-size: 14px;
  font-weight: 800;
  min-width: 20px;
  text-align: center;
}

.menu-add-btn {
  width: 100%;
  padding: 8px;
  border-radius: 100px;
  background: var(--color-action);
  color: #FFF;
  font-weight: 700;
  border: none;
  font-size: 14px;
  margin-top: auto;
}

.menu-add-btn:active {
  transform: scale(0.96);
}

.category-tabs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 16px 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.cat-tab {
  padding: 10px 20px;
  border-radius: 100px;
  background: #FFF;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.cat-tab.active {
  background: var(--color-action);
  border-color: var(--color-action);
  color: #FFF;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.2);
}

.cart-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 16px 20px 32px;
  z-index: 100;
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.05);
}

/* iOS style Checkouts */
.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}

.cart-item-name {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.cart-item-price {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.cart-item-total {
  font-size: 16px;
  font-weight: 900;
  color: var(--text-primary);
}

.order-summary {
  background: #FFF;
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 600;
}

.summary-row.total {
  border-top: 1px dashed var(--border-color);
  margin-top: 12px;
  padding-top: 16px;
  font-size: 18px;
  font-weight: 900;
  color: var(--text-primary);
}

.summary-row.total .amount {
  color: var(--color-action);
  font-size: 20px;
}

/* ================================================
   KITCHEN & WAITER GRID (Tablet/iPad)
   ================================================ */
.kitchen-header {
  background: #FFF;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.kitchen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.kitchen-card {
  background: #FFF;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid transparent;
}

.kitchen-card.status-waiting {
  border-top: 4px solid var(--warning);
}

.kitchen-card.status-cooking {
  border-top: 4px solid var(--info);
}

.kitchen-card-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #F8F9FA;
  border-bottom: 1px solid var(--border-color);
}

.kitchen-order-num {
  font-size: 16px;
  font-weight: 900;
  color: var(--text-primary);
}

.kitchen-card-body {
  padding: 20px;
}

.kitchen-item-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.kitchen-actions {
  padding: 16px 20px;
  display: flex;
  gap: 12px;
  background: #F8F9FA;
  border-top: 1px solid var(--border-color);
}

/* Table Map */
.table-map {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px;
}

.table-cell {
  background: #FFF;
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  border: 2px solid transparent;
  transition: transform 0.15s ease;
}

.table-cell:active {
  transform: scale(0.96);
}

.table-cell.empty {
  border-color: var(--success);
}

.table-cell.occupied {
  border-color: var(--danger);
  background: #FFF5F5;
}

.table-cell.dirty {
  border-color: var(--warning);
  background: #FFFDF5;
}

.table-number {
  font-size: 24px;
  font-weight: 900;
  color: var(--text-primary);
  display: block;
  margin: 8px 0;
}

.table-status-icon {
  font-size: 28px;
  display: block;
}

.table-orders-count {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  background: var(--color-action);
  color: #FFF;
  font-weight: 900;
  font-size: 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(255, 107, 0, 0.3);
  border: 2px solid #FFF;
}

/* ================================================
   LANDING
   ================================================ */
.landing-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #FFF;
}

.landing-logo {
  text-align: center;
  margin-bottom: 40px;
}

.landing-logo h1 {
  font-size: 32px;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -1px;
  margin-top: 12px;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 480px;
}

.role-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border: none;
  box-shadow: none;
  transition: transform 0.15s, background 0.15s;
}

.role-card:active {
  transform: scale(0.96);
  background: #E8ECEF;
}

.role-icon {
  font-size: 40px;
  background: #FFF;
  width: 80px;
  height: 80px;
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.role-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}

/* Utilities */
.text-center {
  text-align: center;
}

.fw-bold {
  font-weight: 700;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 107, 0, 0.2);
  border-top-color: var(--color-action);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsiveness */
@media (max-width: 768px) {
  .main-content {
    margin-left: 0;
  }

  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: none;
    width: var(--sidebar-width);
  }

  .table-map {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
  }

  .kitchen-grid {
    grid-template-columns: 1fr;
  }
}