@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg: #0a0a0f;
  --bg2: #111118;
  --glass: rgba(255,255,255,0.06);
  --glass-border: rgba(255,255,255,0.1);
  --primary: #7c3aed;
  --primary2: #a855f7;
  --pink: #ec4899;
  --cyan: #06b6d4;
  --green: #10b981;
  --yellow: #f59e0b;
  --red: #ef4444;
  --text: #f1f5f9;
  --text2: #94a3b8;
  --text3: #64748b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Animated mesh background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 80% at 20% -20%, rgba(124,58,237,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 80% 100%, rgba(236,72,153,0.1) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 60% 40%, rgba(6,182,212,0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ===== GLASS CARD ===== */
.glass {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}

/* ===== NAVBAR ===== */
.g-navbar {
  position: sticky; top: 0; z-index: 50;
  padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(10,10,15,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}
.g-navbar .brand {
  font-size: 1.2rem; font-weight: 800;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.g-navbar .nav-actions { display: flex; align-items: center; gap: 10px; }

/* ===== BUTTONS ===== */
.btn-genz {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 50px; border: none;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .875rem;
  cursor: pointer; transition: var(--transition); text-decoration: none;
  position: relative; overflow: hidden;
}
.btn-genz::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0); transition: var(--transition);
}
.btn-genz:hover::after { background: rgba(255,255,255,0.1); }
.btn-genz:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: white; box-shadow: 0 4px 15px rgba(124,58,237,0.4);
}
.btn-primary:hover { box-shadow: 0 6px 25px rgba(124,58,237,0.6); transform: translateY(-1px); color: white; }

.btn-pink {
  background: linear-gradient(135deg, #ec4899, #f472b6);
  color: white; box-shadow: 0 4px 15px rgba(236,72,153,0.4);
}
.btn-pink:hover { box-shadow: 0 6px 25px rgba(236,72,153,0.6); transform: translateY(-1px); color: white; }

.btn-green {
  background: linear-gradient(135deg, #059669, #10b981);
  color: white; box-shadow: 0 4px 15px rgba(16,185,129,0.4);
}
.btn-green:hover { box-shadow: 0 6px 25px rgba(16,185,129,0.6); transform: translateY(-1px); color: white; }

.btn-ghost {
  background: var(--glass); border: 1px solid var(--glass-border);
  color: var(--text2);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: var(--text); }

.btn-danger-ghost {
  background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2);
  color: #f87171;
}
.btn-danger-ghost:hover { background: rgba(239,68,68,0.2); }

.btn-sm { padding: 7px 14px; font-size: .8rem; }
.btn-icon { padding: 8px; width: 36px; height: 36px; justify-content: center; }
.btn-block { width: 100%; justify-content: center; padding: 14px; font-size: 1rem; }

/* ===== FORM ===== */
.g-input {
  width: 100%; background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm); padding: 12px 16px;
  color: var(--text); font-family: 'Poppins', sans-serif; font-size: .9rem;
  transition: var(--transition); outline: none;
}
.g-input:focus {
  border-color: var(--primary2); background: rgba(124,58,237,0.08);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}
.g-input::placeholder { color: var(--text3); }
.g-label { display: block; font-size: .8rem; font-weight: 600; color: var(--text2); margin-bottom: 6px; }
.g-group { margin-bottom: 18px; }

/* ===== BADGE ===== */
.badge-genz {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 12px; border-radius: 50px; font-size: .72rem; font-weight: 600;
}
.badge-purple { background: rgba(124,58,237,0.2); color: #a855f7; border: 1px solid rgba(168,85,247,0.3); }
.badge-pink { background: rgba(236,72,153,0.2); color: #f472b6; border: 1px solid rgba(244,114,182,0.3); }
.badge-green { background: rgba(16,185,129,0.2); color: #34d399; border: 1px solid rgba(52,211,153,0.3); }
.badge-yellow { background: rgba(245,158,11,0.2); color: #fbbf24; border: 1px solid rgba(251,191,36,0.3); }
.badge-red { background: rgba(239,68,68,0.2); color: #f87171; border: 1px solid rgba(248,113,113,0.3); }
.badge-cyan { background: rgba(6,182,212,0.2); color: #22d3ee; border: 1px solid rgba(34,211,238,0.3); }

/* ===== SIDEBAR ===== */
.g-sidebar {
  width: 250px; position: fixed; top: 0; left: 0; height: 100vh;
  background: rgba(10,10,15,0.95);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--glass-border);
  z-index: 100; display: flex; flex-direction: column;
  overflow-y: auto;
}
.sidebar-logo { padding: 28px 24px 20px; border-bottom: 1px solid var(--glass-border); }
.sidebar-logo .logo-text {
  font-size: 1.2rem; font-weight: 800;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.sidebar-logo .logo-sub { font-size: .75rem; color: var(--text3); margin-top: 2px; }
.sidebar-section { padding: 16px 16px 4px; font-size: .65rem; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: 1.5px; }
.sidebar-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 20px; color: var(--text2); text-decoration: none;
  font-size: .88rem; font-weight: 500; border-radius: 10px; margin: 2px 8px;
  transition: var(--transition); position: relative;
}
.sidebar-link:hover { background: var(--glass); color: var(--text); }
.sidebar-link.active {
  background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(168,85,247,0.1));
  color: #a855f7; border: 1px solid rgba(168,85,247,0.2);
}
.sidebar-link.active::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  height: 60%; width: 3px; background: linear-gradient(#7c3aed, #a855f7);
  border-radius: 0 4px 4px 0; left: 8px;
}
.sidebar-link i { width: 18px; text-align: center; font-size: .95rem; }
.sidebar-notif {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #000; font-size: .7rem; font-weight: 700;
  padding: 2px 8px; border-radius: 50px; margin-left: auto;
}
.g-main { margin-left: 250px; padding: 28px; position: relative; z-index: 1; }
.g-topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px;
}
.g-topbar h4 { font-size: 1.4rem; font-weight: 700; }
.g-topbar p { font-size: .83rem; color: var(--text3); margin-top: 2px; }

/* ===== STAT CARD ===== */
.stat-card-genz {
  border-radius: var(--radius); padding: 24px;
  position: relative; overflow: hidden;
  border: 1px solid var(--glass-border);
}
.stat-card-genz .stat-icon { font-size: 2.2rem; margin-bottom: 12px; }
.stat-card-genz .stat-num { font-size: 1.8rem; font-weight: 800; }
.stat-card-genz .stat-label { font-size: .8rem; color: var(--text2); margin-top: 4px; }
.stat-card-genz::after {
  content: ''; position: absolute; right: -20px; top: -20px;
  width: 100px; height: 100px; border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.stat-purple { background: linear-gradient(135deg, rgba(124,58,237,0.3), rgba(124,58,237,0.1)); }
.stat-pink { background: linear-gradient(135deg, rgba(236,72,153,0.3), rgba(236,72,153,0.1)); }
.stat-cyan { background: linear-gradient(135deg, rgba(6,182,212,0.3), rgba(6,182,212,0.1)); }
.stat-green { background: linear-gradient(135deg, rgba(16,185,129,0.3), rgba(16,185,129,0.1)); }

/* ===== TABLE ===== */
.g-table { width: 100%; border-collapse: collapse; }
.g-table th { padding: 12px 16px; text-align: left; font-size: .78rem; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: .5px; border-bottom: 1px solid var(--glass-border); }
.g-table td { padding: 14px 16px; font-size: .875rem; border-bottom: 1px solid rgba(255,255,255,0.04); vertical-align: middle; }
.g-table tr:hover td { background: rgba(255,255,255,0.02); }
.g-table tr:last-child td { border-bottom: none; }

/* ===== MENU CARD ===== */
.menu-card-genz {
  border-radius: var(--radius); overflow: hidden;
  background: var(--glass); border: 1px solid var(--glass-border);
  transition: var(--transition); height: 100%;
}
.menu-card-genz:hover { transform: translateY(-6px); border-color: rgba(168,85,247,0.3); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.menu-img-genz {
  height: 150px; display: flex; align-items: center; justify-content: center;
  font-size: 4rem; position: relative; overflow: hidden;
}
.menu-card-genz .card-body { padding: 16px; }
.menu-price { font-size: 1.1rem; font-weight: 700; background: linear-gradient(135deg, #a855f7, #ec4899); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.menu-name { font-weight: 600; font-size: .93rem; margin: 6px 0 4px; }
.menu-desc { font-size: .78rem; color: var(--text3); margin-bottom: 12px; line-height: 1.5; }

/* ===== CART ITEM ===== */
.cart-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--glass-border);
}
.cart-item:last-child { border-bottom: none; }
.cart-emoji { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; flex-shrink: 0; background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(236,72,153,0.2)); }
.qty-ctrl { display: flex; align-items: center; gap: 10px; }
.qty-btn-genz {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--glass-border);
  background: var(--glass); color: var(--text); font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center;
}
.qty-btn-genz:hover { background: var(--primary); border-color: var(--primary); }
.qty-num { font-weight: 700; min-width: 24px; text-align: center; }

/* ===== FILTER CHIPS ===== */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: 50px; font-size: .82rem; font-weight: 600;
  border: 1px solid var(--glass-border); background: var(--glass);
  color: var(--text2); cursor: pointer; text-decoration: none; transition: var(--transition);
}
.chip:hover { border-color: var(--primary2); color: var(--primary2); }
.chip.active { background: linear-gradient(135deg, rgba(124,58,237,0.3), rgba(168,85,247,0.2)); border-color: var(--primary2); color: var(--primary2); }

/* ===== SUMMARY BOX ===== */
.summary-box {
  background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(236,72,153,0.15));
  border: 1px solid rgba(168,85,247,0.25); border-radius: var(--radius); padding: 24px;
}

/* ===== DIVIDER ===== */
.g-divider { border: none; border-top: 1px solid var(--glass-border); margin: 20px 0; }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state .empty-icon { font-size: 4rem; margin-bottom: 16px; }
.empty-state h5 { font-weight: 600; color: var(--text2); }
.empty-state p { font-size: .85rem; color: var(--text3); margin-top: 6px; }

/* ===== SEARCH ===== */
.g-search { position: relative; }
.g-search input { padding-left: 44px; }
.g-search .search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text3); pointer-events: none; }

/* ===== PESANAN CARD ===== */
.pesanan-card-genz {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius); padding: 18px; transition: var(--transition);
  display: block; text-decoration: none; color: var(--text);
}
.pesanan-card-genz:hover { border-color: rgba(168,85,247,0.3); transform: translateX(4px); color: var(--text); }
.kode-genz { font-family: 'Courier New', monospace; font-weight: 700; color: var(--primary2); font-size: .9rem; }

/* ===== SELECT ===== */
.g-select {
  background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm); padding: 10px 14px; color: var(--text);
  font-family: 'Poppins', sans-serif; font-size: .85rem; outline: none;
  transition: var(--transition); cursor: pointer;
}
.g-select:focus { border-color: var(--primary2); }
.g-select option { background: #1a1a2e; color: var(--text); }

/* ===== TEXTAREA ===== */
textarea.g-input { resize: vertical; min-height: 80px; }

/* ===== TOGGLE SWITCH ===== */
.g-toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.toggle-track { width: 44px; height: 24px; border-radius: 50px; background: var(--glass); border: 1px solid var(--glass-border); position: relative; transition: var(--transition); }
.toggle-track.on { background: linear-gradient(135deg, var(--green), #34d399); border-color: var(--green); }
.toggle-thumb { width: 18px; height: 18px; background: white; border-radius: 50%; position: absolute; top: 2px; left: 2px; transition: var(--transition); }
.toggle-track.on .toggle-thumb { left: 22px; }

/* ===== HERO BANNER ===== */
.hero-banner {
  background: linear-gradient(135deg, rgba(124,58,237,0.3) 0%, rgba(236,72,153,0.2) 50%, rgba(6,182,212,0.15) 100%);
  border: 1px solid rgba(168,85,247,0.2); border-radius: 20px; padding: 28px 32px; margin-bottom: 28px; position: relative; overflow: hidden;
}
.hero-banner::before {
  content: ''; position: absolute; right: -40px; top: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(168,85,247,0.1);
}
.hero-banner h4 { font-size: 1.3rem; font-weight: 800; }
.hero-banner p { color: var(--text2); font-size: .88rem; margin-top: 4px; }

/* ====== TOAST SYSTEM ====== */
#toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.toast-genz {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; border-radius: 14px; min-width: 280px; max-width: 360px;
  backdrop-filter: blur(20px); border: 1px solid;
  font-family: 'Poppins', sans-serif; font-size: .875rem; font-weight: 500;
  pointer-events: all; cursor: pointer;
  transform: translateX(120%); opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.toast-genz.show { transform: translateX(0); opacity: 1; }
.toast-genz.hide { transform: translateX(120%); opacity: 0; transition: all 0.3s ease; }
.toast-success { background: rgba(16,185,129,0.15); border-color: rgba(52,211,153,0.4); color: #34d399; }
.toast-error { background: rgba(239,68,68,0.15); border-color: rgba(248,113,113,0.4); color: #f87171; }
.toast-warning { background: rgba(245,158,11,0.15); border-color: rgba(251,191,36,0.4); color: #fbbf24; }
.toast-info { background: rgba(6,182,212,0.15); border-color: rgba(34,211,238,0.4); color: #22d3ee; }
.toast-icon { font-size: 1.2rem; flex-shrink: 0; }
.toast-progress { position: absolute; bottom: 0; left: 0; height: 3px; border-radius: 0 0 14px 14px; background: currentColor; animation: toast-progress 3s linear forwards; opacity: .4; }
@keyframes toast-progress { from { width: 100%; } to { width: 0%; } }
.toast-genz { position: relative; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.fade-up { animation: fadeUp 0.5s ease forwards; }

/* ===== MISC ===== */
a { color: var(--primary2); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--pink); }
.text-muted-genz { color: var(--text2); font-size: .83rem; }
.text-xs { font-size: .75rem; }
.fw-800 { font-weight: 800; }
.gap-col { display: flex; flex-direction: column; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; }
.row-center { display: flex; align-items: center; gap: 10px; }
