/* WEBYAZ RESTAURANT — Common Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary: #006B54;
  --primary-light: #008f70;
  --primary-dark: #00503f;
  --primary-glow: rgba(0, 107, 84, 0.12);
  --secondary: #FF6B35;
  --accent: #FF6B35;
  --accent-light: #FF8F65;
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-elevated: #ffffff;
  --bg-hover: #e2e8f0;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-tertiary: #64748b;
  --text-link: #006B54;
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.12);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.12);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.12);
  --info: #3b82f6;
  --info-bg: rgba(59, 130, 246, 0.12);
  --border-primary: #e2e8f0;
  --border-accent: rgba(255, 107, 53, 0.2);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 4px 12px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 10px 25px rgba(16, 24, 40, 0.08);
  --shadow-xl: 0 16px 40px rgba(16, 24, 40, 0.1);
  --shadow-glow: 0 0 15px rgba(0, 107, 84, 0.15);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-blur: 12px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-family); background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; min-height: 100vh; overflow-x: hidden; }
a { color: var(--text-link); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--primary-light); }
img { max-width: 100%; height: auto; }
h1 { font-size: 2rem; font-weight: 700; } h2 { font-size: 1.5rem; font-weight: 700; } h3 { font-size: 1.25rem; font-weight: 700; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border: none; border-radius: var(--radius-md); font-family: var(--font-family); font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all var(--transition-normal); white-space: nowrap; line-height: 1.4; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; box-shadow: 0 2px 8px var(--primary-glow); }
.btn-primary:hover { background: linear-gradient(135deg, var(--primary-light), var(--primary)); box-shadow: 0 4px 16px var(--primary-glow); transform: translateY(-1px); }
.btn-secondary { background: var(--bg-tertiary); color: var(--text-primary); border: 1px solid var(--border-primary); }
.btn-secondary:hover { background: var(--bg-hover); }
.btn-accent { background: linear-gradient(135deg, var(--accent), #E55A25); color: white; box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2); }
.btn-accent:hover { background: linear-gradient(135deg, var(--accent-light), var(--accent)); box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3); transform: translateY(-1px); }
.btn-success { background: linear-gradient(135deg, var(--success), #238636); color: white; }
.btn-success:hover { background: linear-gradient(135deg, #3FB950, var(--success)); }
.btn-danger { background: linear-gradient(135deg, var(--danger), #DA3633); color: white; }
.btn-danger:hover { background: linear-gradient(135deg, #FF7B73, var(--danger)); }
.btn-warning { background: linear-gradient(135deg, var(--warning), #B08800); color: white; }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: var(--radius-md); }

/* Cards */
.card { background: var(--bg-secondary); border: 1px solid var(--border-primary); border-radius: var(--radius-lg); padding: 24px; transition: all var(--transition-normal); }
.card:hover { border-color: var(--border-accent); box-shadow: var(--shadow-md); }
.card-glass { background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur)); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); padding: 24px; }

/* Form Elements */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.form-input, .form-select, .form-textarea { width: 100%; padding: 10px 14px; background: var(--bg-tertiary); border: 1px solid var(--border-primary); border-radius: var(--radius-md); color: var(--text-primary); font-family: var(--font-family); font-size: 0.95rem; transition: all var(--transition-fast); }
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.form-input::placeholder { color: var(--text-tertiary); }
.form-textarea { resize: vertical; min-height: 80px; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238B949E' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

/* Badges */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-pending { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(210, 153, 34, 0.3); }
.badge-preparing { background: var(--info-bg); color: var(--info); border: 1px solid rgba(88, 166, 255, 0.3); }
.badge-ready { background: var(--success-bg); color: var(--success); border: 1px solid rgba(46, 160, 67, 0.3); }
.badge-delivered, .badge-paid { background: rgba(139, 148, 158, 0.15); color: var(--text-secondary); border: 1px solid rgba(139, 148, 158, 0.3); }
.badge-cancelled { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(248, 81, 73, 0.3); }

/* Data Tables */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border-primary); }
.data-table th { background: var(--bg-tertiary); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-secondary); }
.data-table tbody tr { transition: background var(--transition-fast); }
.data-table tbody tr:hover { background: var(--bg-hover); }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 1000; opacity: 0; visibility: hidden; transition: all var(--transition-normal); }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal { background: var(--bg-secondary); border: 1px solid var(--border-primary); border-radius: var(--radius-xl); width: 90%; max-width: 560px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-xl); transform: scale(0.9) translateY(20px); transition: transform var(--transition-normal); }
.modal-overlay.active .modal { transform: scale(1) translateY(0); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 24px; border-bottom: 1px solid var(--border-primary); }
.modal-body { padding: 24px; }
.modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 16px 24px; border-top: 1px solid var(--border-primary); }
.cart-close { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: var(--bg-tertiary); border: 1px solid var(--border-primary); border-radius: var(--radius-md); color: var(--text-secondary); cursor: pointer; font-size: 1.2rem; line-height: 1; transition: all var(--transition-fast); }
.cart-close:hover { background: var(--danger); color: white; border-color: var(--danger); }

/* Toast */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; }
.toast { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-radius: var(--radius-md); background: var(--bg-elevated); border: 1px solid var(--border-primary); box-shadow: var(--shadow-lg); min-width: 300px; max-width: 450px; animation: toastSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1); font-size: 0.9rem; }
.toast-success { border-left: 4px solid var(--success); }
.toast-error { border-left: 4px solid var(--danger); }
.toast-warning { border-left: 4px solid var(--warning); }
.toast-info { border-left: 4px solid var(--info); }
.toast-exit { animation: toastSlideOut 0.3s forwards; }

@keyframes toastSlideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toastSlideOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes pulseGlow { 0%, 100% { box-shadow: 0 0 0 0 var(--primary-glow); } 50% { box-shadow: 0 0 20px 10px var(--primary-glow); } }
@keyframes spin { to { transform: rotate(360deg); } }

.animate-fadeIn { animation: fadeIn 0.4s ease-out; }
.animate-slideUp { animation: slideUp 0.4s ease-out; }
.animate-pulse { animation: pulse 2s infinite; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 4px; }

.text-center { text-align: center; } .text-muted { color: var(--text-secondary); } .text-sm { font-size: 0.85rem; } .text-xs { font-size: 0.75rem; }
.text-success { color: var(--success); } .text-danger { color: var(--danger); } .text-warning { color: var(--warning); } .text-primary-c { color: var(--primary); }
.font-bold { font-weight: 700; } .mt-md { margin-top: 16px; } .mb-md { margin-bottom: 16px; }
.flex { display: flex; } .flex-col { flex-direction: column; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-sm { gap: 8px; } .gap-md { gap: 16px; } .w-full { width: 100%; } .hidden { display: none !important; }

.spinner { width: 24px; height: 24px; border: 3px solid var(--border-primary); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.6s linear infinite; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px; text-align: center; color: var(--text-secondary); }
.empty-state-icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.5; }

@media (max-width: 768px) {
  html { font-size: 14px; }
  .modal { width: 96%; border-radius: var(--radius-lg); }
  .modal-header { padding: 16px; }
  .modal-body { padding: 16px; }
  .modal-body [style*="grid-template-columns"] { display: flex !important; flex-direction: column !important; }
  .modal-body [style*="grid-column"] { grid-column: unset !important; }
  .modal-footer { padding: 12px 16px; flex-wrap: wrap; }
  .modal-footer .btn { flex: 1; min-width: 120px; }
  .toast-container { top: auto; bottom: 12px; right: 12px; left: 12px; }
  .toast { min-width: auto; max-width: 100%; }
  .data-table th, .data-table td { padding: 8px 6px; font-size: 0.8rem; }
  .empty-state { padding: 32px 16px; }
}

/* Developer Footer */
.dev-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 38px;
  background: #0B132B !important; /* Dark Navy background to match index footer */
  border-top: 1px solid rgba(255, 255, 255, 0.08); /* Subtle light border */
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family) !important; /* Force same font family */
  font-size: 0.76rem;
  color: #ffffff !important;
  font-weight: 700;
  z-index: 200; /* Sit above sidebar */
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
}
.dev-footer span {
  color: rgba(255, 255, 255, 0.75) !important;
}
.dev-footer span:first-child {
  color: #FF6B35 !important;
  font-weight: 800;
}
.dev-footer span strong {
  color: #ffffff !important;
  font-weight: 700;
}
.dev-footer a {
  color: #ffffff !important;
  font-weight: 700;
  text-decoration: underline;
  transition: color 0.2s;
}
.dev-footer a:hover {
  color: #FF6B35 !important; /* Orange hover effect */
}

@media (max-width: 600px) {
  .dev-footer {
    height: auto !important;
    padding: 8px 12px !important;
    flex-wrap: wrap;
    line-height: 1.4;
    text-align: center;
  }
}
