/* ============================================
   PAK RESTO UNIKOM — Premium Design System
   Version: 2.0 (Modern, Interactive, No Emojis)
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* --- CSS Variables (Design Tokens) --- */
:root {
  /* Primary Palette (Deep Ocean & Slate) */
  --primary: #0F172A;
  --primary-light: #1E293B;
  --primary-lighter: #334155;
  --primary-dark: #020617;
  --primary-bg: #F8FAFC;
  --primary-accent: #3B82F6;

  /* Accent (Golden Amber) */
  --accent: #F59E0B;
  --accent-light: #FCD34D;
  --accent-dark: #D97706;

  /* Neutrals */
  --white: #FFFFFF;
  --black: #020617;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;

  /* Status Colors */
  --success: #10B981;
  --success-light: #D1FAE5;
  --success-dark: #059669;
  --warning: #F59E0B;
  --warning-light: #FEF3C7;
  --warning-dark: #D97706;
  --danger: #EF4444;
  --danger-light: #FEE2E2;
  --danger-dark: #DC2626;
  --info: #3B82F6;
  --info-light: #DBEAFE;
  --info-dark: #2563EB;

  /* Surfaces & Glassmorphism */
  --bg-body: #F1F5F9;
  --bg-sidebar: #FFFFFF;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-modal-overlay: rgba(15, 23, 42, 0.6);
  --glass-border: 1px solid rgba(255, 255, 255, 0.4);

  /* Shadows - Smooth & Premium */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
  --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.4);

  /* Border Radius */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Sidebar */
  --sidebar-width: 280px;
  --sidebar-collapsed: 80px;
  --header-height: 72px;
  --bottom-nav-height: 72px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-body);
  background-image: radial-gradient(circle at 100% 0%, #E2E8F0 0%, transparent 40%),
                    radial-gradient(circle at 0% 100%, #DBEAFE 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--gray-800);
  line-height: 1.6;
  min-height: 100vh;
}

/* Headings use Outfit for a modern geometric look */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
  letter-spacing: -0.02em;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
h5 { font-size: 0.875rem; font-weight: 600; }

p { color: var(--gray-600); line-height: 1.7; }

a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; outline: none; }
input, select, textarea { font-family: inherit; font-size: inherit; outline: none; }
table { border-collapse: collapse; width: 100%; }

/* Utilities */
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.02em; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.5rem; }
.text-muted { color: var(--gray-500); }
.text-primary { color: var(--primary-accent); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* ============================================
   LAYOUT
   ============================================ */

.app { display: flex; min-height: 100vh; }

/* --- Sidebar --- */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--gray-200);
  position: fixed;
  top: 0; left: 0; height: 100vh;
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-slow), width var(--transition-slow);
  box-shadow: 4px 0 24px rgba(15, 23, 42, 0.02);
}

.sidebar-brand {
  padding: 32px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.sidebar-brand .brand-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: var(--shadow);
  transition: transform var(--bounce);
}

.sidebar-brand:hover .brand-icon {
  transform: scale(1.05) rotate(-5deg);
}

.sidebar-brand .brand-text {
  display: flex;
  flex-direction: column;
}

.sidebar-brand .brand-name {
  color: var(--gray-900);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  font-family: 'Outfit', sans-serif;
}

.sidebar-brand .brand-role {
  color: var(--primary-accent);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}

.nav-label {
  color: var(--gray-400);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  padding: 20px 12px 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--radius);
  color: var(--gray-600);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.nav-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0; width: 100%;
  background: var(--primary-bg);
  transform: translateX(-100%);
  transition: transform var(--transition);
  z-index: -1;
  border-radius: var(--radius);
}

.nav-item:hover::before { transform: translateX(0); }
.nav-item:hover { color: var(--primary-accent); }
.nav-item:hover .nav-icon { color: var(--primary-accent); transform: scale(1.1); }

.nav-item.active {
  color: var(--primary-accent);
  font-weight: 600;
  background: var(--primary-bg);
}

.nav-item.active .nav-icon {
  color: var(--primary-accent);
}

.nav-item .nav-icon {
  font-size: 1.25rem;
  transition: all var(--bounce);
  color: var(--gray-500);
}

.sidebar-footer {
  padding: 24px 16px;
  border-top: 1px solid var(--gray-100);
}

.nav-item.logout { color: var(--danger); font-weight: 600; }
.nav-item.logout .nav-icon { color: var(--danger); }
.nav-item.logout::before { background: var(--danger-light); }
.nav-item.logout:hover { color: var(--danger-dark); }

/* --- Main Content --- */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left var(--transition-slow);
}

/* --- Header --- */
.header {
  height: var(--header-height);
  background: rgba(241, 245, 249, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.5);
}

.header-left { display: flex; align-items: center; gap: 20px; }

.btn-sidebar-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--radius);
  background: var(--white);
  align-items: center; justify-content: center;
  font-size: 1.25rem;
  color: var(--gray-700);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.btn-sidebar-toggle:hover { background: var(--gray-50); box-shadow: var(--shadow); }

.page-title { font-size: 1.25rem; font-weight: 700; color: var(--gray-900); }
.page-subtitle { font-size: 0.85rem; color: var(--gray-500); font-weight: 400; }

.header-right { display: flex; align-items: center; gap: 16px; }

.header-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 8px 8px;
  border-radius: var(--radius-full);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
  cursor: pointer;
}
.header-user:hover { box-shadow: var(--shadow); }

.header-user .user-avatar {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  font-family: 'Outfit', sans-serif;
}

.header-user .user-name { font-size: 0.9rem; font-weight: 600; color: var(--gray-800); }

/* --- Page Content --- */
.content { flex: 1; padding: 32px; max-width: 1600px; margin: 0 auto; width: 100%; }

.content-header { margin-bottom: 32px; animation: slideUp 0.5s ease; }
.content-header h1 { font-size: 2rem; margin-bottom: 8px; }
.content-header p { font-size: 1rem; color: var(--gray-500); }

/* ============================================
   COMPONENTS
   ============================================ */

/* --- Cards --- */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--white);
  overflow: hidden;
  transition: all var(--transition);
  margin-bottom: 24px;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.card-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--gray-100);
  display: flex; align-items: center; justify-content: space-between;
}
.card-header h3 { font-size: 1.15rem; font-weight: 700; color: var(--gray-900); }

.card-body { padding: 28px; }
.card-footer { padding: 20px 28px; border-top: 1px solid var(--gray-100); background: rgba(248, 250, 252, 0.5); }

/* --- Stat Cards --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--white);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  animation: slideUp 0.6s ease backwards;
}

/* Stagger animations */
.stat-card:nth-child(1) { animation-delay: 0.05s; }
.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.15s; }
.stat-card:nth-child(4) { animation-delay: 0.2s; }

.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
}
.stat-card.blue::before { background: var(--primary-accent); }
.stat-card.green::before { background: var(--success); }
.stat-card.yellow::before { background: var(--warning); }
.stat-card.red::before { background: var(--danger); }

.stat-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
  transition: transform var(--bounce);
}
.stat-card:hover .stat-icon { transform: scale(1.1) rotate(5deg); }

.stat-icon.blue { background: var(--info-light); color: var(--info-dark); }
.stat-icon.green { background: var(--success-light); color: var(--success-dark); }
.stat-icon.yellow { background: var(--warning-light); color: var(--warning-dark); }
.stat-icon.red { background: var(--danger-light); color: var(--danger-dark); }

.stat-info { flex: 1; min-width: 0; }
.stat-info h4 { font-size: 0.85rem; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.stat-info .stat-value { font-size: clamp(1.2rem, 1.8vw, 1.5rem); font-weight: 800; color: var(--gray-900); font-family: 'Outfit', sans-serif; line-height: 1.1; word-break: break-word; }
.stat-info .stat-desc { font-size: 0.8rem; color: var(--gray-400); margin-top: 6px; font-weight: 500; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-md);
  font-size: 0.95rem; font-weight: 600;
  transition: all var(--bounce); border: none; cursor: pointer;
  letter-spacing: 0.01em;
}

.btn i { font-size: 1.15rem; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; border-radius: var(--radius); }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; border-radius: var(--radius-lg); }

.btn-primary {
  background: var(--primary-accent); color: var(--white);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.btn-primary:hover {
  background: var(--info-dark);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4); transform: translateY(-2px);
}

.btn-success { background: var(--success); color: var(--white); box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); }
.btn-success:hover { background: var(--success-dark); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4); }

.btn-danger { background: var(--danger); color: var(--white); box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3); }
.btn-danger:hover { background: var(--danger-dark); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4); }

.btn-info { background: var(--primary); color: var(--white); box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3); }
.btn-info:hover { background: var(--primary-light); transform: translateY(-2px); }

.btn-outline { background: var(--white); border: 1.5px solid var(--gray-300); color: var(--gray-700); }
.btn-outline:hover { border-color: var(--primary-accent); color: var(--primary-accent); background: var(--primary-bg); transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--gray-600); }
.btn-ghost:hover { background: var(--gray-100); color: var(--gray-900); }

.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: var(--radius); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* --- Forms --- */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--gray-700); margin-bottom: 8px; }

.form-control {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-md);
  font-size: 0.95rem; color: var(--gray-900); background: var(--white);
  transition: all var(--transition);
}
.form-control:focus {
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
  background: var(--white);
}
.form-control::placeholder { color: var(--gray-400); }
.form-error { font-size: 0.8rem; color: var(--danger); margin-top: 6px; font-weight: 500; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748B' viewBox='0 0 256 256'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* Toggle Switch */
.toggle-switch { position: relative; display: inline-block; width: 48px; height: 26px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; inset: 0; background: var(--gray-300); border-radius: var(--radius-full); transition: var(--transition); }
.toggle-slider::before { content: ''; position: absolute; height: 20px; width: 20px; left: 3px; bottom: 3px; background: var(--white); border-radius: 50%; transition: var(--bounce); box-shadow: var(--shadow-sm); }
.toggle-switch input:checked + .toggle-slider { background: var(--success); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(22px); }

/* --- Tables --- */
.table-wrapper { overflow-x: auto; border-radius: var(--radius-md); }
.table { width: 100%; border-collapse: separate; border-spacing: 0; }
.table thead th {
  background: rgba(248, 250, 252, 0.8);
  padding: 16px 20px; font-size: 0.75rem; font-weight: 700; color: var(--gray-500);
  text-transform: uppercase; letter-spacing: 0.1em; text-align: left;
  border-bottom: 1px solid var(--gray-200); white-space: nowrap;
}
.table tbody td {
  padding: 16px 20px; font-size: 0.95rem; color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100); vertical-align: middle;
}
.table tbody tr { transition: background var(--transition-fast); }
.table tbody tr:hover { background: rgba(248, 250, 252, 0.6); }
.table tbody tr:last-child td { border-bottom: none; }

/* --- Badges --- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; white-space: nowrap;
}
.badge-success { background: var(--success-light); color: var(--success-dark); }
.badge-danger { background: var(--danger-light); color: var(--danger-dark); }
.badge-warning { background: var(--warning-light); color: var(--warning-dark); }
.badge-info { background: var(--info-light); color: var(--info-dark); }
.badge-gray { background: var(--gray-100); color: var(--gray-600); border: 1px solid var(--gray-200); }
.badge-primary { background: var(--primary-bg); color: var(--primary-accent); }

.badge-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* --- Tabs --- */
.tabs { display: flex; gap: 8px; border-bottom: 2px solid var(--gray-200); margin-bottom: 28px; overflow-x: auto; }
.tab-item {
  padding: 12px 24px; font-size: 0.95rem; font-weight: 600; color: var(--gray-500);
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  cursor: pointer; transition: all var(--transition); white-space: nowrap;
  background: none; border-top: none; border-left: none; border-right: none;
}
.tab-item:hover { color: var(--gray-900); }
.tab-item.active { color: var(--primary-accent); border-bottom-color: var(--primary-accent); }

/* --- Modal --- */
.modal-overlay {
  position: fixed; inset: 0; background: var(--bg-modal-overlay);
  z-index: 200; display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; visibility: hidden; transition: all var(--transition);
  backdrop-filter: blur(8px);
}
.modal-overlay.show { opacity: 1; visibility: visible; }

.modal {
  background: var(--white); border-radius: var(--radius-xl);
  width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-xl); transform: scale(0.95) translateY(20px);
  transition: transform var(--transition);
}
.modal-overlay.show .modal { transform: scale(1) translateY(0); }

.modal-header { padding: 24px 32px; border-bottom: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; }
.modal-header h3 { font-size: 1.25rem; font-weight: 700; font-family: 'Outfit', sans-serif;}
.modal-close {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md); background: var(--gray-100); color: var(--gray-500);
  font-size: 1.25rem; transition: all var(--transition-fast);
}
.modal-close:hover { background: var(--gray-200); color: var(--gray-800); transform: rotate(90deg); }
.modal-body { padding: 32px; }
.modal-footer { padding: 20px 32px; border-top: 1px solid var(--gray-100); display: flex; justify-content: flex-end; gap: 12px; background: var(--gray-50); border-radius: 0 0 var(--radius-xl) var(--radius-xl); }

/* --- Toast Notification --- */
.toast-container { position: fixed; top: 24px; right: 24px; z-index: 300; display: flex; flex-direction: column; gap: 12px; }
.toast {
  background: var(--white); border-radius: var(--radius-md); padding: 16px 24px;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 16px;
  min-width: 320px; max-width: 450px; border-left: 4px solid;
  animation: slideInRight 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), fadeOut 0.3s ease 2.7s forwards;
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
.toast.info { border-left-color: var(--primary-accent); }

.toast-icon { font-size: 1.5rem; }
.toast.success .toast-icon { color: var(--success); }
.toast.error .toast-icon { color: var(--danger); }
.toast.warning .toast-icon { color: var(--warning); }
.toast.info .toast-icon { color: var(--primary-accent); }

.toast-message { flex: 1; font-size: 0.9rem; font-weight: 500; color: var(--gray-800); }
.toast-close { background: none; border: none; color: var(--gray-400); cursor: pointer; font-size: 1.25rem; transition: color var(--transition); }
.toast-close:hover { color: var(--gray-800); }

/* --- Meja Grid (Denah) --- */
.meja-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.meja-card {
  background: var(--white); border: 2px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: 24px 20px; text-align: center; cursor: pointer; transition: all var(--bounce); position: relative;
}
.meja-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.meja-card.kosong { border-color: var(--success-light); background: var(--white); }
.meja-card.kosong:hover { border-color: var(--success); }
.meja-card.terisi { border-color: var(--danger-light); background: rgba(254, 242, 242, 0.5); }

.meja-card .meja-icon { font-size: 2rem; margin-bottom: 12px; color: var(--gray-400); transition: color var(--transition); }
.meja-card.kosong .meja-icon { color: var(--success); }
.meja-card.terisi .meja-icon { color: var(--danger); }

.meja-card .meja-number { font-size: 2rem; font-weight: 800; color: var(--gray-900); font-family: 'Outfit', sans-serif; line-height: 1; margin-bottom: 8px; }
.meja-card .meja-kapasitas { font-size: 0.8rem; color: var(--gray-500); font-weight: 500; display: flex; align-items: center; justify-content: center; gap: 4px; }
.meja-card .meja-lokasi { font-size: 0.75rem; color: var(--gray-400); margin-top: 4px; display: flex; align-items: center; justify-content: center; gap: 4px; }

/* --- Queue Cards (Koki) --- */
.queue-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.queue-card {
  display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  border: 1px solid var(--gray-100); overflow: hidden; transition: all var(--transition);
}
.queue-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.queue-card-header { padding: 20px; display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid var(--gray-100); }
.queue-card-header .order-id { font-weight: 800; font-size: 1.1rem; font-family: 'Outfit', sans-serif; color: var(--gray-900); }
.queue-timer { font-size: 0.85rem; font-weight: 700; padding: 6px 12px; border-radius: var(--radius-full); display: flex; align-items: center; gap: 6px; }
.queue-timer.green { background: var(--success-light); color: var(--success-dark); }
.queue-timer.yellow { background: var(--warning-light); color: var(--warning-dark); }
.queue-timer.red { background: var(--danger-light); color: var(--danger-dark); }
.queue-card-body { padding: 20px; flex: 1; }
.queue-item { display: flex; justify-content: space-between; padding: 10px 0; font-size: 0.95rem; color: var(--gray-700); border-bottom: 1px dashed var(--gray-200); font-weight: 500; }
.queue-item:last-child { border-bottom: none; padding-bottom: 0; }
.queue-card-footer { padding: 16px 20px; background: var(--gray-50); margin-top: auto; }

/* --- Menu Grid (Input Pesanan) --- */
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.menu-item-card {
  background: var(--white); border: 2px solid var(--gray-100); border-radius: var(--radius-lg);
  padding: 20px; transition: all var(--bounce); position: relative; box-shadow: var(--shadow-sm);
}
.menu-item-card:hover { border-color: var(--primary-lighter); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.menu-item-card.in-cart { border-color: var(--primary-accent); background: rgba(59, 130, 246, 0.05); }

.menu-item-card .menu-item-icon { font-size: 2rem; color: var(--gray-400); margin-bottom: 12px; }
.menu-item-card.in-cart .menu-item-icon { color: var(--primary-accent); }

.menu-item-card .menu-item-name { font-weight: 700; font-size: 1.05rem; color: var(--gray-900); margin-bottom: 6px; line-height: 1.3; }
.menu-item-card .menu-item-cat { font-size: 0.75rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.menu-item-card .menu-item-price { font-size: 1.15rem; font-weight: 800; color: var(--primary-accent); margin-top: 16px; font-family: 'Outfit', sans-serif; }

.menu-item-card .menu-item-qty { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.qty-btn {
  width: 36px; height: 36px; border-radius: var(--radius-full); border: 1.5px solid var(--gray-200);
  background: var(--white); display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--gray-600); cursor: pointer; transition: all var(--transition-fast);
}
.qty-btn:hover { border-color: var(--primary-accent); color: var(--primary-accent); background: var(--primary-bg); transform: scale(1.1); }
.qty-value { font-weight: 700; font-size: 1.1rem; min-width: 28px; text-align: center; color: var(--gray-900); }

/* --- Order Summary Panel --- */
.order-summary {
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100); position: sticky; top: calc(var(--header-height) + 32px);
  overflow: hidden;
}
.order-summary-header { padding: 24px; border-bottom: 1px solid var(--gray-100); background: var(--gray-50); }
.order-summary-header h3 { font-size: 1.15rem; font-weight: 700; margin: 0; }
.order-summary-body { padding: 16px 24px; max-height: 450px; overflow-y: auto; }
.order-summary-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--gray-200); }
.order-summary-item:last-child { border-bottom: none; }
.order-summary-footer { padding: 24px; border-top: 2px dashed var(--gray-200); background: var(--white); }
.order-total { display: flex; justify-content: space-between; align-items: center; font-size: 1.25rem; font-weight: 800; color: var(--gray-900); margin-bottom: 20px; font-family: 'Outfit', sans-serif;}

/* --- Filter Bar & Search --- */
.filter-bar { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.search-box { position: relative; flex: 1; min-width: 250px; }
.search-box .form-control { padding-left: 44px; border-radius: var(--radius-full); }
.search-box .search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--gray-400); font-size: 1.2rem; }
.filter-bar select.form-control { width: auto; min-width: 180px; border-radius: var(--radius-full); }

/* --- Shortcut Cards --- */
.shortcut-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 24px; }
.shortcut-card {
  display: flex; align-items: center; gap: 16px; padding: 20px;
  background: var(--white); border: 1.5px solid var(--gray-100); border-radius: var(--radius-lg);
  cursor: pointer; transition: all var(--bounce); box-shadow: var(--shadow-sm);
}
.shortcut-card:hover { border-color: var(--primary-accent); background: var(--primary-bg); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.shortcut-card .shortcut-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem; flex-shrink: 0;
}
.shortcut-card .shortcut-text h4 { font-size: 1rem; font-weight: 700; color: var(--gray-900); }
.shortcut-card .shortcut-text p { font-size: 0.8rem; color: var(--gray-500); margin-top: 4px; font-weight: 500;}

/* --- Notif Panel --- */
.notif-panel { max-height: 350px; overflow-y: auto; padding-right: 8px; }
.notif-item { display: flex; align-items: flex-start; gap: 16px; padding: 16px; border-radius: var(--radius-md); background: var(--gray-50); margin-bottom: 12px; transition: all var(--transition); border: 1px solid var(--gray-100);}
.notif-item:hover { background: var(--white); box-shadow: var(--shadow-sm); border-color: var(--gray-200);}
.notif-icon { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.notif-icon.success { background: var(--success-light); color: var(--success-dark); }
.notif-icon.warning { background: var(--warning-light); color: var(--warning-dark); }
.notif-icon.info { background: var(--info-light); color: var(--info-dark); }
.notif-text { font-size: 0.9rem; color: var(--gray-700); line-height: 1.5; font-weight: 500;}
.notif-time { font-size: 0.75rem; color: var(--gray-400); margin-top: 6px; font-weight: 600;}

/* --- Empty State --- */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state .empty-icon { font-size: 4rem; margin-bottom: 20px; color: var(--gray-300); }
.empty-state h3 { color: var(--gray-600); font-size: 1.25rem; margin-bottom: 12px; }
.empty-state p { font-size: 0.95rem; color: var(--gray-400); max-width: 320px; margin: 0 auto; line-height: 1.6;}

/* --- Custom Radio --- */
.radio-group { display: flex; gap: 16px; }
.radio-card { flex: 1; border: 2px solid var(--gray-200); border-radius: var(--radius-md); padding: 20px; cursor: pointer; transition: all var(--bounce); text-align: center; background: var(--white);}
.radio-card:hover { border-color: var(--primary-accent); transform: translateY(-2px); }
.radio-card.selected { border-color: var(--primary-accent); background: var(--primary-bg); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1); }
.radio-card .radio-icon { font-size: 2rem; margin-bottom: 12px; color: var(--gray-400); transition: color var(--transition); }
.radio-card.selected .radio-icon { color: var(--primary-accent); }
.radio-card .radio-label { font-weight: 700; font-size: 1rem; color: var(--gray-700); transition: color var(--transition); }
.radio-card.selected .radio-label { color: var(--primary-accent); }

/* --- Login Page --- */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--primary); padding: 24px; position: relative; overflow: hidden;
}
.login-bg-shape1 { position: absolute; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, transparent 70%); top: -200px; right: -200px; filter: blur(40px); animation: pulse 8s infinite alternate;}
.login-bg-shape2 { position: absolute; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(245,158,11,0.1) 0%, transparent 70%); bottom: -150px; left: -150px; filter: blur(40px); animation: pulse 10s infinite alternate-reverse;}

.login-card {
  background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-xl); padding: 48px; width: 100%; max-width: 460px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); position: relative; z-index: 10;
  border: 1px solid rgba(255,255,255,0.2);
}

.login-logo { text-align: center; margin-bottom: 40px; }
.login-logo .logo-icon {
  width: 80px; height: 80px; border-radius: var(--radius-lg); background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 2.5rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.3);
}
.login-logo h1 { font-size: 1.8rem; color: var(--gray-900); margin-bottom: 8px; }
.login-logo p { font-size: 0.95rem; color: var(--gray-500); }

/* --- Helper Classes & Layout --- */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.order-layout { display: grid; grid-template-columns: 1fr 400px; gap: 32px; align-items: start; }
.mb-sm { margin-bottom: 12px; } .mb-md { margin-bottom: 24px; } .mb-lg { margin-bottom: 32px; }
.mt-sm { margin-top: 12px; } .mt-md { margin-top: 24px; } .mt-lg { margin-top: 32px; }

/* Animations */
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; transform: translateX(50px); } }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.5; } 100% { transform: scale(1.2); opacity: 1; } }

/* Responsive */
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .btn-sidebar-toggle { display: flex; }
  .order-layout { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(15,23,42,0.6); z-index: 99; opacity: 0; visibility: hidden; backdrop-filter: blur(4px); transition: all var(--transition); }
  .sidebar-backdrop.show { opacity: 1; visibility: visible; }
}

@media (max-width: 768px) {
  .content { padding: 20px; padding-bottom: calc(var(--bottom-nav-height) + 20px); }
  .header { padding: 0 20px; }
  .stats-grid, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .meja-grid, .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .bottom-nav {
    display: block; position: fixed; bottom: 0; left: 0; right: 0; height: var(--bottom-nav-height);
    background: rgba(255,255,255,0.9); backdrop-filter: blur(12px); border-top: 1px solid var(--gray-200);
    z-index: 100; box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
  }
  .bottom-nav-items { display: flex; height: 100%; }
  .bottom-nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 0.7rem; font-weight: 600; color: var(--gray-500); transition: color var(--transition-fast); }
  .bottom-nav-item i { font-size: 1.4rem; }
  .bottom-nav-item.active { color: var(--primary-accent); }
  .header-user .user-name { display: none; }
}
@media (max-width: 480px) {
  .meja-grid, .menu-grid { grid-template-columns: 1fr; }
  .login-card { padding: 32px 24px; border-radius: var(--radius-lg); }
  .login-logo .logo-icon { width: 64px; height: 64px; font-size: 2rem; }
}
