@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Midnight Glassmorphism Palette */
  --bg:          #050505;
  --bg2:         #0a0a0a;
  --surface:     #121212;
  --card:        #151517;
  --card2:       #1b1b1d;
  --border:      rgba(255,255,255,0.06);
  --border-h:    rgba(255,255,255,0.12);

  /* Premium Accents (Biru / Primary) */
  --accent:      #2563eb;
  --accent2:     #60a5fa;
  --accent-dk:   #1d4ed8;
  --accent-glow: rgba(37,99,235,0.25);
  --accent-sub:  rgba(37,99,235,0.1);

  /* Status Colors (Muted Neons) */
  --green:       #10b981;
  --green-bg:    rgba(16,185,129,0.12);
  --yellow:      #fbbf24; /* Emas / Tertiary */
  --yellow-bg:   rgba(251,191,36,0.12);
  --red:         #ef4444; /* Merah / Secondary */
  --red-bg:      rgba(239,68,68,0.12);
  --blue:        #3b82f6;
  --blue-bg:     rgba(59,130,246,0.12);
  --purple:      #8b5cf6;
  --purple-bg:   rgba(139,92,246,0.12);

  /* Typography Colors */
  --t1:  #ffffff;
  --t2:  #a1a1aa;
  --t3:  #71717a;

  /* Smooth Radii */
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  18px;
  --r-xl:  24px;
  --r-f:   9999px;

  /* Deep & Soft Shadows */
  --sh:    0 4px 20px rgba(0,0,0,0.5);
  --sh-lg: 0 10px 40px rgba(0,0,0,0.7);
  --sh-ac: 0 4px 24px var(--accent-glow);

  --tr: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);

  --sidebar-w: 240px;
  --top-h:     72px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  background-image: radial-gradient(circle at 50% -20%, rgba(255,106,0,0.05), transparent 60%);
  color: var(--t1);
  min-height: 100vh;
  font-size: 14.5px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }
img { max-width: 100%; }

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: var(--r-f); }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ========== LAYOUT ========== */
.app-layout { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  background: rgba(10,10,10,0.6);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dk));
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  box-shadow: var(--sh-ac);
  border: 1px solid rgba(255,255,255,0.1);
}
.sidebar-logo-text { font-size: 16px; font-weight: 700; letter-spacing: -0.3px; }
.sidebar-logo-sub { font-size: 11px; color: var(--t2); font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase; }

.sidebar-nav { padding: 16px 12px; flex: 1; overflow-y: auto; }
.nav-group { margin-bottom: 24px; }
.nav-group-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 0 12px;
  margin-bottom: 8px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  color: var(--t2);
  font-size: 14px;
  font-weight: 600;
  transition: var(--tr);
  margin-bottom: 4px;
  position: relative;
}
.nav-link:hover {
  background: rgba(255,255,255,0.03);
  color: var(--t1);
  transform: translateX(4px);
}
.nav-link.active {
  background: var(--accent-sub);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(255,106,0,0.1);
}
.nav-link.active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 50%;
  background: var(--accent);
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 10px var(--accent);
}
.nav-icon { font-size: 18px; width: 22px; text-align: center; }
.nav-badge {
  margin-left: auto;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--r-f);
  min-width: 24px;
  text-align: center;
  box-shadow: 0 0 12px rgba(239,68,68,0.4);
}

/* Topbar */
.topbar {
  height: var(--top-h);
  background: rgba(5,5,5,0.7);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.topbar-title { font-size: 18px; font-weight: 700; flex: 1; letter-spacing: -0.3px; }
.topbar-subtitle { font-size: 12px; color: var(--t2); font-weight: 500; margin-top: 2px; }

/* Main Content */
.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.page-content { padding: 32px; flex: 1; max-width: 1400px; margin: 0 auto; width: 100%; }

/* ========== CARDS ========== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--sh);
  transition: var(--tr);
}
.card:hover { border-color: var(--border-h); box-shadow: 0 8px 30px rgba(0,0,0,0.6); }
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.card-title { font-size: 16px; font-weight: 700; letter-spacing: -0.2px; }
.card-sub { font-size: 13px; color: var(--t2); margin-top: 4px; }

/* Stat Cards */
.stat-card {
  background: linear-gradient(180deg, var(--card), var(--bg2));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: var(--tr);
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.03), transparent 70%);
  pointer-events: none;
}
.stat-card:hover { 
  border-color: rgba(255,255,255,0.15); 
  transform: translateY(-4px); 
  box-shadow: 0 12px 40px rgba(0,0,0,0.8);
}
.stat-icon {
  width: 54px; height: 54px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.05);
}
.stat-icon.orange { background: var(--accent-sub); color: var(--accent2); box-shadow: inset 0 0 20px rgba(255,106,0,0.1); }
.stat-icon.green  { background: var(--green-bg);   color: var(--green);   box-shadow: inset 0 0 20px rgba(16,185,129,0.1); }
.stat-icon.blue   { background: var(--blue-bg);    color: var(--blue);    box-shadow: inset 0 0 20px rgba(59,130,246,0.1); }
.stat-icon.purple { background: var(--purple-bg);  color: var(--purple);  box-shadow: inset 0 0 20px rgba(139,92,246,0.1); }
.stat-icon.yellow { background: var(--yellow-bg);  color: var(--yellow);  box-shadow: inset 0 0 20px rgba(245,158,11,0.1); }
.stat-icon.red    { background: var(--red-bg);     color: var(--red);     box-shadow: inset 0 0 20px rgba(239,68,68,0.1); }
.stat-value { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; }
.stat-label { font-size: 13px; color: var(--t2); font-weight: 500; margin-top: 4px; }

/* ========== GRID LAYOUTS ========== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 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: 20px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 700;
  border: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1;
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.btn:active { transform: scale(0.96); }
.btn:disabled { opacity: 0.5; pointer-events: none; filter: grayscale(100%); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dk));
  color: #fff;
  box-shadow: var(--sh-ac), inset 0 1px 0 rgba(255,255,255,0.2);
  border: 1px solid rgba(0,0,0,0.2);
}
.btn-primary:hover { filter: brightness(1.15); box-shadow: 0 8px 30px rgba(255,106,0,0.4), inset 0 1px 0 rgba(255,255,255,0.3); }
.btn-secondary { background: var(--card2); color: var(--t1); border: 1px solid var(--border-h); box-shadow: var(--sh); }
.btn-secondary:hover { background: var(--border-h); border-color: rgba(255,255,255,0.2); }
.btn-danger { background: rgba(239,68,68,0.1); color: var(--red); border: 1px solid rgba(239,68,68,0.3); }
.btn-danger:hover { background: var(--red); color: #fff; box-shadow: 0 4px 20px rgba(239,68,68,0.4); }
.btn-success { background: rgba(16,185,129,0.1); color: var(--green); border: 1px solid rgba(16,185,129,0.3); }
.btn-success:hover { background: var(--green); color: #fff; box-shadow: 0 4px 20px rgba(16,185,129,0.4); }
.btn-warning { background: rgba(245,158,11,0.1); color: var(--yellow); border: 1px solid rgba(245,158,11,0.3); }
.btn-warning:hover { background: var(--yellow); color: #fff; box-shadow: 0 4px 20px rgba(245,158,11,0.4); }
.btn-ghost { background: transparent; color: var(--t2); border: 1px solid transparent; }
.btn-ghost:hover { background: rgba(255,255,255,0.05); color: var(--t1); }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: var(--r-sm); }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: var(--r-lg); }
.btn-icon { padding: 10px; border-radius: var(--r-md); display: inline-flex; align-items: center; justify-content: center; }

/* ========== FORMS ========== */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--t2);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}
.form-label span { color: var(--red); margin-left: 2px; }
.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg2);
  border: 1px solid var(--border-h);
  border-radius: var(--r-md);
  color: var(--t1);
  font-size: 14.5px;
  font-weight: 500;
  transition: var(--tr);
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}
.form-control:focus { background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-sub), inset 0 2px 4px rgba(0,0,0,0.1); }
.form-control::placeholder { color: var(--t3); font-weight: 400; }
.form-control:disabled { opacity: 0.4; cursor: not-allowed; }
select.form-control { cursor: pointer; appearance: none; background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2214%22%20height%3D%2210%22%20viewBox%3D%220%200%2014%2010%22%3E%3Cpath%20fill%3D%22%23a1a1aa%22%20d%3D%22M7%2010L0%200h14L7%2010z%22%2F%3E%3C%2Fsvg%3E'); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
select.form-control option { background: var(--card); color: var(--t1); }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.form-hint { font-size: 12px; color: var(--t3); margin-top: 6px; }
.form-control.readonly { background: var(--card2); color: var(--accent); font-weight: 700; border-color: transparent; box-shadow: none; }
.input-group { display: flex; align-items: stretch; }
.input-group .form-control { border-radius: var(--r-md) 0 0 var(--r-md); flex: 1; }
.input-addon {
  padding: 12px 16px;
  background: var(--card2);
  border: 1px solid var(--border-h);
  border-left: none;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--t2);
  white-space: nowrap;
  display: flex; align-items: center;
}

/* ========== TABLE ========== */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--border); box-shadow: var(--sh); background: var(--card); }
table { width: 100%; border-collapse: collapse; }
th {
  background: rgba(255,255,255,0.02);
  padding: 16px 20px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: var(--t2);
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  border-bottom: 1px solid var(--border-h);
}
td {
  padding: 16px 20px;
  font-size: 14.5px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }
.td-actions { display: flex; gap: 8px; }

/* ========== BADGES ========== */
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 4px 12px;
  border-radius: var(--r-f);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
}
.badge-orange  { background: var(--accent-sub); color: var(--accent2); box-shadow: inset 0 0 0 1px rgba(255,106,0,0.2); }
.badge-green   { background: var(--green-bg);   color: var(--green);   box-shadow: inset 0 0 0 1px rgba(16,185,129,0.2); }
.badge-yellow  { background: var(--yellow-bg);  color: var(--yellow);  box-shadow: inset 0 0 0 1px rgba(245,158,11,0.2); }
.badge-red     { background: var(--red-bg);     color: var(--red);     box-shadow: inset 0 0 0 1px rgba(239,68,68,0.2); }
.badge-blue    { background: var(--blue-bg);    color: var(--blue);    box-shadow: inset 0 0 0 1px rgba(59,130,246,0.2); }
.badge-purple  { background: var(--purple-bg);  color: var(--purple);  box-shadow: inset 0 0 0 1px rgba(139,92,246,0.2); }
.badge-gray    { background: rgba(255,255,255,0.05); color: var(--t2); }

/* ========== MODAL ========== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--sh-lg), 0 0 0 1px rgba(255,255,255,0.02);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-lg { max-width: 760px; }
.modal-header {
  padding: 24px 28px 0;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.modal-title { font-size: 18px; font-weight: 800; letter-spacing: -0.3px; }
.modal-close {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.05);
  border: 1px solid transparent;
  color: var(--t2);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: var(--tr);
}
.modal-close:hover { background: rgba(239,68,68,0.1); color: var(--red); transform: rotate(90deg); }
.modal-body { padding: 20px 28px 28px; }

/* ========== TOAST ========== */
#toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.toast {
  background: rgba(20,20,22,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 300px;
  max-width: 400px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  font-size: 14.5px;
  font-weight: 500;
}
.toast.hiding { animation: slideOutRight 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.toast-icon { font-size: 20px; flex-shrink: 0; }
.toast-success { border-left: 4px solid var(--green); }
.toast-error   { border-left: 4px solid var(--red); }
.toast-warning { border-left: 4px solid var(--yellow); }
.toast-info    { border-left: 4px solid var(--blue); }
@keyframes slideInRight  { 0% { transform: translateX(120%) scale(0.9); opacity: 0; } 100% { transform: translateX(0) scale(1); opacity: 1; } }
@keyframes slideOutRight { 0% { transform: translateX(0) scale(1); opacity: 1; } 100% { transform: translateX(120%) scale(0.9); opacity: 0; } }

/* ========== SEARCH & FILTER BAR ========== */
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.search-box {
  flex: 1;
  min-width: 240px;
  position: relative;
}
.search-box input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  background: var(--bg2);
  border: 1px solid var(--border-h);
  border-radius: var(--r-md);
  color: var(--t1);
  font-size: 14.5px;
  font-weight: 500;
  outline: none;
  transition: var(--tr);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}
.search-box input:focus { background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-sub), inset 0 2px 4px rgba(0,0,0,0.1); }
.search-box::before {
  content: '🔍';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  opacity: 0.7;
}

/* ========== PRODUCT CARD (Katalog) ========== */
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: var(--tr);
  cursor: pointer;
  position: relative;
  box-shadow: var(--sh);
}
.product-card:hover { border-color: rgba(255,106,0,0.3); transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,106,0,0.1); }
.product-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--bg2);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-body { padding: 16px; }
.product-card-name { font-size: 15px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.2px; }
.product-card-price { font-size: 18px; font-weight: 800; color: var(--accent2); }
.product-card-hpp { font-size: 12px; color: var(--t3); margin-top: 2px; }
.product-card-badge { position: absolute; top: 12px; right: 12px; }
.product-unavailable { opacity: 0.4; filter: grayscale(100%); pointer-events: none; }

/* ========== ORDER CARD (Dapur) ========== */
.order-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  transition: var(--tr);
  position: relative;
  overflow: hidden;
  box-shadow: var(--sh);
}
.order-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 5px; height: 100%;
}
.order-card.menunggu::before      { background: var(--yellow); box-shadow: 0 0 10px var(--yellow); }
.order-card.dikonfirmasi::before  { background: var(--blue); box-shadow: 0 0 10px var(--blue); }
.order-card.diracik::before       { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.order-card.siap::before          { background: var(--green); box-shadow: 0 0 10px var(--green); }
.order-num { font-size: 32px; font-weight: 800; color: var(--t1); line-height: 1; letter-spacing: -1px; }
.order-source { font-size: 12px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; }
.order-customer { font-size: 14.5px; font-weight: 700; margin: 10px 0 8px; }
.order-items { font-size: 13px; color: var(--t2); font-weight: 500; }
.order-item-row { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px dashed rgba(255,255,255,0.05); }
.order-item-row:last-child { border-bottom: none; }
.order-total { font-weight: 800; font-size: 16px; color: var(--accent2); border-top: 1px solid var(--border-h); padding-top: 10px; margin-top: 10px; }
.order-time { font-size: 12px; color: var(--t3); margin-top: 8px; font-weight: 500; }
.order-actions { display: flex; gap: 10px; margin-top: 16px; }

/* ========== CART ========== */
.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item-img {
  width: 50px; height: 50px;
  border-radius: var(--r-sm);
  background: var(--bg2);
  object-fit: cover;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  border: 1px solid rgba(255,255,255,0.05);
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.2px; }
.cart-item-price { font-size: 13px; color: var(--accent2); font-weight: 700; margin-top: 2px; }
.qty-control { display: flex; align-items: center; gap: 8px; }
.qty-btn {
  width: 30px; height: 30px;
  border-radius: var(--r-sm);
  background: var(--card2);
  border: 1px solid var(--border-h);
  color: var(--t1);
  font-size: 16px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: var(--tr);
}
.qty-btn:active { transform: scale(0.9); }
.qty-btn:hover { background: var(--accent); border-color: var(--accent-dk); color: #fff; box-shadow: 0 4px 12px rgba(255,106,0,0.4); }
.qty-num { font-size: 15px; font-weight: 700; min-width: 24px; text-align: center; }

/* ========== STATUS CHIPS ========== */
.status-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  border-radius: var(--r-f);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.status-menunggu_konfirmasi { background: var(--yellow-bg); color: var(--yellow); box-shadow: inset 0 0 0 1px rgba(245,158,11,0.2); }
.status-dikonfirmasi        { background: var(--blue-bg);   color: var(--blue);   box-shadow: inset 0 0 0 1px rgba(59,130,246,0.2); }
.status-diracik             { background: var(--accent-sub); color: var(--accent2); box-shadow: inset 0 0 0 1px rgba(255,106,0,0.2); }
.status-siap                { background: var(--green-bg);  color: var(--green);  box-shadow: inset 0 0 0 1px rgba(16,185,129,0.2); }
.status-selesai             { background: rgba(255,255,255,0.05); color: var(--t2); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1); }

/* ========== EMPTY STATE ========== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  gap: 16px;
}
.empty-state-icon { font-size: 64px; opacity: 0.5; filter: grayscale(100%); }
.empty-state-title { font-size: 18px; font-weight: 700; color: var(--t2); letter-spacing: -0.3px; }
.empty-state-sub { font-size: 14px; color: var(--t3); font-weight: 500; max-width: 300px; }

/* ========== LOADING ========== */
.spinner {
  width: 36px; height: 36px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s cubic-bezier(0.6, 0.2, 0.4, 0.8) infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== DIVIDER ========== */
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border-h), transparent); margin: 24px 0; }

/* ========== TABS ========== */
.tabs { display: flex; gap: 6px; background: rgba(0,0,0,0.4); padding: 6px; border-radius: var(--r-md); box-shadow: inset 0 2px 4px rgba(0,0,0,0.5); }
.tab-btn {
  flex: 1;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--t2);
  border: none;
  background: transparent;
  transition: var(--tr);
  text-align: center;
}
.tab-btn.active { background: var(--card); color: var(--accent); box-shadow: var(--sh), 0 0 0 1px rgba(255,255,255,0.05); }
.tab-btn:hover:not(.active) { color: var(--t1); background: rgba(255,255,255,0.02); }

/* ========== SWITCH TOGGLE ========== */
.switch { position: relative; display: inline-block; width: 48px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider {
  position: absolute; inset: 0;
  background: var(--bg2);
  border: 1px solid var(--border-h);
  border-radius: var(--r-f);
  transition: var(--tr);
  cursor: pointer;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}
.switch-slider::before {
  content: '';
  position: absolute;
  left: 3px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  background: var(--t2);
  border-radius: 50%;
  transition: var(--tr);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.switch input:checked + .switch-slider { background: var(--accent); border-color: var(--accent-dk); box-shadow: inset 0 2px 4px rgba(0,0,0,0.2); }
.switch input:checked + .switch-slider::before { left: calc(100% - 21px); background: #fff; }

/* ========== CATEGORY PILLS ========== */
.cat-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.cat-pill {
  padding: 8px 18px;
  border-radius: var(--r-f);
  font-size: 13.5px;
  font-weight: 600;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--t2);
  cursor: pointer;
  transition: var(--tr);
}
.cat-pill:hover { border-color: rgba(255,255,255,0.2); color: var(--t1); background: rgba(255,255,255,0.08); }
.cat-pill.active { background: var(--accent); border-color: var(--accent-dk); color: #fff; box-shadow: 0 4px 16px rgba(255,106,0,0.4); }

/* ========== RECEIPT PRINT ========== */
@media print {
  body > *:not(#print-area) { display: none !important; }
  #print-area { display: block !important; }
  .no-print { display: none !important; }
}
#print-area {
  display: none;
  font-family: 'Courier New', monospace;
  width: 300px;
  margin: 0 auto;
  color: #000;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn    { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp  { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn   { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes pulse     { 0%,100% { opacity: 1; } 50% { opacity: 0.6; } }
@keyframes bounce    { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.fade-in     { animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.fade-in-up  { animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.scale-in    { animation: scaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1); }

/* ========== MISC UTILS ========== */
.flex        { display: flex; }
.flex-col    { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 24px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 24px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 24px; }
.w-full { width: 100%; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-accent { color: var(--accent2); }
.text-success { color: var(--green); }
.text-danger  { color: var(--red); }
.text-muted   { color: var(--t3); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.text-lg { font-size: 18px; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); width: 260px; box-shadow: 10px 0 40px rgba(0,0,0,0.8); }
  .main { margin-left: 0; }
  .page-content { padding: 20px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .topbar { padding: 0 20px; }
}
