:root {
  --primary: #1a1a2e;
  --primary-light: #16213e;
  --accent: #0f3460;
  --highlight: #e94560;
  --success: #27ae60;
  --warning: #f39c12;
  --danger: #e74c3c;
  --info: #3498db;
  --bg: #f5f6fa;
  --card-bg: #fff;
  --text: #2d3436;
  --text-light: #636e72;
  --border: #dcdde1;
  --shadow: 0 2px 10px rgba(0,0,0,0.08);
  --radius: 8px;
}
* { 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.6; }
a { color: var(--accent); text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.navbar { display: flex; align-items: center; justify-content: space-between; background: var(--primary); padding: 12px 24px; color: #fff; position: sticky; top: 0; z-index: 100; }
.nav-brand { font-size: 1.2em; font-weight: 700; }
.nav-links { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-links a { color: rgba(255,255,255,0.7); padding: 8px 12px; border-radius: var(--radius); transition: all 0.2s; font-size: 0.9em; }
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,0.1); }
.nav-logout { color: var(--highlight) !important; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border: none; border-radius: var(--radius); font-size: 0.95em; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--primary-light); }
.btn-success { background: var(--success); color: #fff; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 6px 12px; font-size: 0.8em; }
.btn-lg { padding: 14px 28px; font-size: 1.1em; }
.btn-block { width: 100%; }
.card { background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-bottom: 20px; }
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 0.95em; }
.alert-error { background: #ffe0e0; color: var(--danger); border-left: 4px solid var(--danger); }
.alert-success { background: #e0ffe0; color: var(--success); border-left: 4px solid var(--success); }
.alert-warning { background: #fff3cd; color: #856404; border-left: 4px solid var(--warning); }
.alert-info { background: #d1ecf1; color: #0c5460; border-left: 4px solid var(--info); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9em; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 14px; border: 2px solid var(--border); border-radius: var(--radius);
  font-size: 1em; transition: border 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--accent); outline: none;
}
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.form-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 20px; }
.table { width: 100%; border-collapse: collapse; }
.table th { background: var(--primary); color: #fff; padding: 12px 14px; text-align: left; font-size: 0.85em; text-transform: uppercase; letter-spacing: 0.5px; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--border); }
.table tr:hover td { background: #f8f9fa; }
.table-responsive { overflow-x: auto; }
.status-badge { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 0.8em; font-weight: 600; text-transform: uppercase; }
.status-active, .status-waiting { background: #d4edda; color: #155724; }
.status-inactive, .status-empty { background: #e2e3e5; color: #383d41; }
.status-called { background: #fff3cd; color: #856404; animation: pulse 1s infinite; }
.status-occupied, .status-active { background: #d4edda; color: #155724; }
.status-pending, .status-blocked { background: #ffe0e0; color: var(--danger); }
.payment-active { background: #d4edda; color: #155724; }
.payment-pending { background: #fff3cd; color: #856404; }
.payment-blocked { background: #ffe0e0; color: var(--danger); }
.badge { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 0.8em; background: var(--accent); color: #fff; }
.badge.warning { background: var(--warning); }
.badge.special { background: var(--highlight); }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.admin-header h1 { font-size: 1.5em; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.stat-card { background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.stat-card h3 { color: var(--accent); margin-bottom: 12px; font-size: 1.1em; }
.stat-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.stat-label { color: var(--text-light); }
.stat-value { font-weight: 700; color: var(--text); }
.section { background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-bottom: 24px; }
.section h2 { margin-bottom: 16px; font-size: 1.2em; color: var(--primary); }
.empty-message { text-align: center; color: var(--text-light); padding: 30px; }
.detail-card { background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-bottom: 24px; }
.detail-row { display: flex; padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.detail-row .label { width: 140px; font-weight: 600; color: var(--text-light); flex-shrink: 0; }
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 200; }
.modal-content { background: #fff; border-radius: var(--radius); padding: 30px; max-width: 500px; width: 90%; max-height: 90vh; overflow-y: auto; }
.modal-content h3 { margin-bottom: 20px; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.6; } }
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--primary); }
.login-container { width: 100%; max-width: 420px; padding: 20px; }
.login-card { background: #fff; border-radius: var(--radius); padding: 40px 30px; text-align: center; }
.login-card h1 { color: var(--primary); margin-bottom: 8px; }
.login-subtitle { color: var(--text-light); margin-bottom: 30px; }
