/* Custom styles & animations for JOO (Just Order Online) */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,400;1,600&family=DM+Mono:wght@400;500&display=swap');

:root {
  /* Default Luxury: Royal Champagne Gold & Velvet Obsidian */
  --primary: #e5b869;
  --secondary: #f6d289;
  --bg: #07080b;
  --surface: #11131a;
  --surface-border: rgba(229, 184, 105, 0.2);
  --text: #f9fafb;
  --text-muted: #94a3b8;
  --accent: #c99738;
  --primary-rgb: 229, 184, 105;
  --secondary-rgb: 246, 210, 137;
  --bg-rgb: 7, 8, 11;

  --theme-primary: var(--primary);
  --theme-secondary: var(--secondary);
  --theme-bg: var(--bg);
  --theme-surface: var(--surface);
  --theme-text: var(--text);
  --theme-primary-rgb: var(--primary-rgb);
  --theme-secondary-rgb: var(--secondary-rgb);
  --theme-bg-rgb: var(--bg-rgb);
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

.font-serif {
  font-family: 'Playfair Display', Georgia, serif;
}

.font-mono {
  font-family: 'DM Mono', monospace;
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
}

::-webkit-scrollbar-thumb {
  background: rgba(217, 119, 6, 0.4);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(217, 119, 6, 0.7);
}

/* Glassmorphism surfaces */
.glass-panel {
  background: rgba(20, 23, 33, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-nav {
  background: rgba(11, 12, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Animations */
@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(217, 119, 6, 0.2);
  }

  50% {
    box-shadow: 0 0 35px rgba(217, 119, 6, 0.45);
  }
}

.glow-hover:hover {
  animation: pulseGlow 2s infinite;
}

/* Floating animation */
@keyframes floatSlow {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.animate-float {
  animation: floatSlow 4s ease-in-out infinite;
}

/* Badge tags */
.badge-gold {
  background: rgba(217, 119, 6, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-green {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-red {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Card hover zoom */
.food-card-img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.food-card:hover .food-card-img {
  transform: scale(1.08);
}

/* Toast alert notification */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  animation: slideInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* =============================================================
   DYNAMIC THEME UTILITIES (JOO Engine)
   ============================================================= */
.theme-btn-primary {
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary)) !important;
  color: #07080b !important;
  font-weight: 700 !important;
  box-shadow: 0 8px 22px -4px rgba(var(--theme-primary-rgb), 0.35) !important;
  border-color: transparent !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.theme-btn-primary:hover {
  filter: brightness(1.12) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 12px 28px -4px rgba(var(--theme-primary-rgb), 0.5) !important;
}

.theme-btn-subtle {
  background-color: rgba(var(--theme-primary-rgb), 0.12) !important;
  color: var(--theme-primary) !important;
  border: 1px solid rgba(var(--theme-primary-rgb), 0.32) !important;
  transition: all 0.2s ease !important;
}

.theme-btn-subtle:hover {
  background-color: var(--theme-primary) !important;
  color: #07080b !important;
}

.theme-primary-text {
  color: var(--theme-primary) !important;
}

.theme-secondary-text {
  color: var(--theme-secondary) !important;
}

.theme-primary-bg {
  background-color: var(--theme-primary) !important;
  color: #07080b !important;
}

.theme-badge {
  background-color: rgba(var(--theme-primary-rgb), 0.12) !important;
  color: var(--theme-primary) !important;
  border: 1px solid rgba(var(--theme-primary-rgb), 0.3) !important;
}

.theme-border {
  border-color: rgba(var(--theme-primary-rgb), 0.32) !important;
}

.theme-border-glow:hover {
  border-color: rgba(var(--theme-primary-rgb), 0.65) !important;
  box-shadow: 0 0 20px rgba(var(--theme-primary-rgb), 0.2) !important;
}

.theme-announcement {
  background: linear-gradient(90deg, var(--theme-primary), var(--theme-secondary)) !important;
  color: #07080b !important;
  font-weight: 700 !important;
}

.theme-glow {
  box-shadow: 0 10px 25px -5px rgba(var(--theme-primary-rgb), 0.3) !important;
}

/* =============================================================
   DASHBOARD LIGHT MODE SYSTEM
   ============================================================= */
html.light-theme, body.light-theme {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}

body.light-theme header {
  background-color: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
}

body.light-theme .glass-panel {
  background-color: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05) !important;
}

body.light-theme h1,
body.light-theme h2,
body.light-theme h3,
body.light-theme h4,
body.light-theme h5,
body.light-theme .text-white {
  color: #0f172a !important;
}

body.light-theme .text-gray-100,
body.light-theme .text-gray-200,
body.light-theme .text-gray-300 {
  color: #1e293b !important;
}

body.light-theme .text-gray-400 {
  color: #475569 !important;
}

body.light-theme .text-gray-500 {
  color: #64748b !important;
}

body.light-theme input,
body.light-theme select,
body.light-theme textarea {
  background-color: #f8fafc !important;
  color: #0f172a !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
}

body.light-theme input:focus,
body.light-theme select:focus,
body.light-theme textarea:focus {
  border-color: #c99738 !important;
  background-color: #ffffff !important;
}

body.light-theme .bg-black\/50,
body.light-theme .bg-black\/40,
body.light-theme .bg-black\/60,
body.light-theme .bg-black\/80,
body.light-theme .bg-black\/90,
body.light-theme .bg-\[\#141824\],
body.light-theme .bg-\[\#0e111a\],
body.light-theme .bg-\[\#080a0f\] {
  background-color: #f8fafc !important;
}

body.light-theme .bg-white\/5,
body.light-theme .bg-white\/10 {
  background-color: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .border-white\/10,
body.light-theme .border-white\/15,
body.light-theme .border-white\/20,
body.light-theme .border-white\/5 {
  border-color: rgba(0, 0, 0, 0.08) !important;
}

body.light-theme footer {
  background-color: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #64748b !important;
}

/* Tab buttons in light mode */
body.light-theme .dash-tab-btn.text-amber-400 {
  color: #a37424 !important;
  border-bottom-color: #c99738 !important;
}
body.light-theme .dash-tab-btn.text-gray-400 {
  color: #64748b !important;
}
body.light-theme .dash-tab-btn.text-gray-400:hover {
  color: #0f172a !important;
}

/* Modals & Drawers in Light Theme */
body.light-theme #modal-export .glass-panel,
body.light-theme #add-dish-modal .glass-panel,
body.light-theme #operator-drawer {
  background-color: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

body.light-theme #operator-messages .bg-white\/5 {
  background-color: #f1f5f9 !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #1e293b !important;
}

body.light-theme #btn-theme-mode-toggle {
  background-color: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: #334155 !important;
}
body.light-theme #btn-theme-mode-toggle:hover {
  background-color: rgba(0, 0, 0, 0.08) !important;
  color: #a37424 !important;
}

body.light-theme .bg-amber-500\/10,
body.light-theme .bg-amber-500\/15,
body.light-theme .bg-amber-500\/20 {
  background-color: rgba(229, 184, 105, 0.18) !important;
  border-color: rgba(201, 151, 56, 0.35) !important;
  color: #855b14 !important;
}
