:root {
  --primary: #2563eb;
  --primary-light: #eff6ff;
  --primary-dark: #1d4ed8;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --bg: #f8fafc;
  --white: #ffffff;
}
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background:var(--bg); color:var(--text); line-height:1.5; font-size:14px; }
a { color:var(--primary); text-decoration:none; }
button, .btn { display:inline-block; padding:8px 16px; background:var(--primary); color:#fff; border:none; border-radius:6px; cursor:pointer; font-size:13px; font-family:inherit; font-weight:500; }
button:hover { background:var(--primary-dark); }
.btn-secondary { background:#e2e8f0; color:var(--text); }
.btn-secondary:hover { background:#cbd5e1; }
.btn-danger { background:#dc2626; color:#fff; }
.btn-danger:hover { background:#b91c1c; }
.btn-success { background:#16a34a; color:#fff; }
.btn-success:hover { background:#15803d; }
.btn-sm { padding:4px 10px; font-size:12px; }
input, select, textarea { width:100%; padding:8px 12px; border:1px solid var(--border); border-radius:6px; font-size:14px; background:#fff; font-family:inherit; }
input:focus, select:focus, textarea:focus { outline:none; border-color:var(--primary); }
.container { max-width:1200px; margin:0 auto; padding:24px; }
.not-authed .container { max-width:100%; padding:0; margin:0; }
.card { background:#fff; border:1px solid var(--border); border-radius:8px; padding:20px; margin-bottom:16px; }
.grid { display:grid; gap:16px; }
.grid-2 { grid-template-columns:repeat(2, 1fr); }
.grid-3 { grid-template-columns:repeat(3, 1fr); }
.grid-4 { grid-template-columns:repeat(4, 1fr); }
@media(max-width:768px) { .grid-2,.grid-3,.grid-4 { grid-template-columns:1fr; } }
table { width:100%; border-collapse:collapse; background:#fff; }
th, td { padding:10px 12px; text-align:left; border-bottom:1px solid var(--border); font-size:13px; }
th { background:#f1f5f9; font-weight:600; }
.badge { display:inline-block; padding:2px 8px; border-radius:10px; font-size:11px; font-weight:600; }
.badge-pending { background:#fef3c7; color:#92400e; }
.badge-confirmed { background:#d1fae5; color:#065f46; }
.badge-cancelled { background:#fee2e2; color:#991b1b; }
.badge-completed { background:#dbeafe; color:#1e40af; }
.stat { background:#fff; border:1px solid var(--border); border-radius:8px; padding:16px; }
.stat-label { font-size:11px; color:var(--text-muted); text-transform:uppercase; letter-spacing:0.5px; }
.stat-value { font-size:22px; font-weight:700; margin-top:4px; color:var(--text); }
.alert { padding:12px 16px; border-radius:6px; margin-bottom:16px; font-size:13px; }
.alert-success { background:#d1fae5; color:#065f46; }
.alert-error { background:#fee2e2; color:#991b1b; }
.form-group { margin-bottom:16px; }
.form-group label { display:block; margin-bottom:6px; font-size:12px; font-weight:600; color:var(--text); }
.text-right { text-align:right; }
.text-center { text-align:center; }
.text-muted { color:var(--text-muted); font-size:12px; }
.flex { display:flex; align-items:center; gap:8px; }
.flex-between { display:flex; align-items:center; justify-content:space-between; }
.mb-4 { margin-bottom:16px; }
.mt-4 { margin-top:16px; }
h1 { font-size:22px; font-weight:700; }
h2 { font-size:17px; font-weight:600; margin-bottom:12px; }
h3 { font-size:14px; font-weight:600; }
.menu-item { display:flex; gap:16px; padding:16px; background:#fff; border:1px solid var(--border); border-radius:8px; margin-bottom:12px; }
.menu-item img { width:120px; height:120px; object-fit:cover; border-radius:6px; background:#f1f5f9; }
.menu-item-body { flex:1; }
.price { font-weight:700; font-size:15px; }
.qty { display:flex; align-items:center; gap:8px; }
.qty input { width:60px; text-align:center; }
.empty { text-align:center; padding:40px; color:var(--text-muted); }

.topbar { background:var(--white); border-bottom:1px solid var(--border); height:56px; display:flex; align-items:center; padding:0 20px; gap:16px; position:sticky; top:0; z-index:100; }
.menu-toggle { background:transparent; color:var(--text); font-size:18px; padding:6px 12px; border-radius:6px; border:1px solid var(--border); }
.menu-toggle:hover { background:var(--primary-light); color:var(--primary); border-color:var(--primary); }
.brand { font-weight:700; font-size:16px; color:var(--primary); }
.topbar-user { margin-left:auto; display:flex; align-items:center; gap:12px; }
.user-name { color:var(--text-muted); font-size:13px; }
.btn-logout { background:transparent; color:var(--text-muted); border:1px solid var(--border); padding:6px 14px; border-radius:6px; font-size:13px; font-weight:500; cursor:pointer; font-family:inherit; }
.btn-logout:hover { background:var(--primary-light); color:var(--primary); border-color:var(--primary); }

.sidebar { position:fixed; top:56px; left:0; bottom:0; width:240px; background:var(--white); border-right:1px solid var(--border); transform:translateX(-100%); transition:transform 0.25s ease; z-index:200; overflow-y:auto; }
.sidebar.open { transform:translateX(0); }
.sidebar-header { padding:16px; display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid var(--border); font-weight:600; color:var(--text-muted); text-transform:uppercase; font-size:11px; letter-spacing:0.5px; }
.sidebar-close { background:transparent; color:var(--text-muted); padding:2px 8px; font-size:20px; border-radius:4px; border:none; cursor:pointer; line-height:1; }
.sidebar-close:hover { background:var(--primary-light); color:var(--primary); }
.sidebar-nav { padding:8px; }
.sidebar-nav a { display:block; padding:10px 12px; color:var(--text); border-radius:6px; font-size:13px; margin-bottom:2px; }
.sidebar-nav a:hover { background:var(--primary-light); color:var(--primary); }
.sidebar-overlay { display:none; position:fixed; inset:0; top:56px; background:rgba(15,23,42,0.4); z-index:150; }
.sidebar-overlay.show { display:block; }
.content-with-sidebar { transition:margin-left 0.25s ease; }
.content-with-sidebar.sidebar-open { margin-left:240px; }

.login-split { display:flex; min-height:100vh; }
.login-left { flex:1; display:flex; flex-direction:column; justify-content:center; align-items:center; padding:40px; background:var(--white); }
.login-logo { width:180px; height:180px; object-fit:contain; margin-bottom:24px; }
.login-title { font-size:24px; font-weight:700; color:var(--text); text-align:center; }
.login-subtitle { color:var(--text-muted); margin-top:8px; text-align:center; font-size:13px; }
.login-divider { width:1px; background:var(--border); }
.login-right { flex:1; display:flex; flex-direction:column; justify-content:center; align-items:center; padding:40px; background:var(--bg); }
.login-right form { width:100%; max-width:360px; }
.login-form-title { font-size:22px; font-weight:700; color:var(--text); margin-bottom:4px; }
.login-form-sub { color:var(--text-muted); margin-bottom:24px; font-size:13px; }
.login-right .form-group input { padding:10px 14px; }
.login-right button[type="submit"] { width:100%; padding:12px; font-size:14px; font-weight:600; }
@media (max-width:768px) {
  .login-split { flex-direction:column; }
  .login-divider { width:100%; height:1px; }
  .login-left { padding:32px 24px; }
  .login-logo { width:120px; height:120px; }
  .content-with-sidebar.sidebar-open { margin-left:0; }
  .sidebar { width:260px; }
}
