/* ==========================================================================
   QMenu - Modern Design System (SaaS Aesthetic), 10 Themes & Customized Fonts
   ========================================================================== */

/* Import premium fonts */
@import url('https://fonts.googleapis.com/css2?family=Arvo:wght@400;700&family=Cardo:wght@400;700&family=Cinzel:wght@600;800&family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=EB+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&family=Lato:wght@300;400;700&family=Lora:ital,wght@0,400;0,600;0,700;1,400&family=Merriweather:wght@300;400;700&family=Montserrat:wght@300;400;500;600;700&family=Nunito:wght@300;400;600;700&family=Open+Sans:wght@300;400;600;700&family=Outfit:wght@300;400;500;600;700;800;900&family=PT+Serif:wght@400;700&family=Playfair+Display:ital,wght@0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&family=Raleway:wght@300;400;500;600;700&family=Roboto:wght@300;400;500;700&family=Space+Grotesk:wght@400;600;700&family=Ubuntu:wght@300;400;500;700&display=swap');

:root {
  /* Default Typography */
  --font-title: 'Playfair Display', 'Cinzel', serif;
  --font-body: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-serif: 'Plus Jakarta Sans', 'Inter', sans-serif; /* Modern sans-serif fallback for admin headings */
  --font-title-weight: 700;

  /* Transition durations */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);

  /* DEFAULT COLORS (Classic Gold) */
  --color-primary: #d4af37;
  --color-primary-rgb: 212, 175, 55;
  --color-bg: #09090b;
  --color-card: #121215;
  --color-border: #1f1f23;
  --color-text: #fafafa;
  --color-text-muted: #a1a1aa;
  --color-danger: #ef4444;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-warning-rgb: 245, 158, 11;
  --glass-bg: rgba(18, 18, 21, 0.8);
  --glass-border: rgba(212, 175, 55, 0.15);

  /* Custom theme decoration properties */
  --theme-card-shadow: var(--shadow-sm);
  --theme-border-width: 1px;
  --theme-border-style: solid;
  --theme-border-radius: var(--radius-md);
  --theme-title-transform: none;
  --theme-letter-spacing: normal;
  --theme-title-decor: none;
}

/* Light mode overrides for the admin area */
html.admin-light,
html.admin-light body {
  --color-bg: #f5f6f8;
  --color-card: #ffffff;
  --color-border: #e2e8f0;
  --color-text: #0f172a;
  --color-text-muted: #64748b;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 0, 0, 0.08);
}

.admin-light .editor-lang-tab.active {
  color: #000000 !important;
}

.admin-light .btn-primary {
  color: #000000 !important;
}

/* ==========================================================================
   THE 10 PREMIUM THEMES (CUSTOMIZED FONTS & SCHEMES)
   ========================================================================== */

/* 1. Classic Gold (Fine Dining, Luxury Steakhouses) */
.theme-classic-dark {
  --font-title: 'Playfair Display', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-title-weight: 700;
  --color-primary: #d4af37;
  --color-primary-rgb: 212, 175, 55;
  --color-bg: #09090b;
  --color-card: #121215;
  --color-border: #1f1f23;
  --color-text: #fafafa;
  --color-text-muted: #a1a1aa;
  --glass-bg: rgba(18, 18, 21, 0.85);
  --glass-border: rgba(212, 175, 55, 0.15);
  --theme-letter-spacing: 0.5px;
}

/* 2. Warm Linen (Italian Cozy - Trattorias & Osterias) */
.theme-warm-minimal {
  --font-title: 'Cormorant Garamond', serif;
  --font-body: 'Inter', sans-serif;
  --font-title-weight: 600; /* Cormorant Garamond looks best at semi-bold weight */
  --color-primary: #bd7a5c; /* Warm terracotta/Tuscan clay */
  --color-primary-rgb: 189, 122, 92;
  --color-bg: #fbf9f4; /* Warm antique linen paper */
  --color-card: #ffffff;
  --color-border: #ebdcd3;
  --color-text: #2f251e; /* Deep espresso roast */
  --color-text-muted: #7d6b5f;
  --glass-bg: rgba(251, 249, 244, 0.9);
  --glass-border: rgba(189, 122, 92, 0.15);
  --theme-card-shadow: 0 4px 20px rgba(189, 122, 92, 0.05);
  --theme-border-radius: 4px; /* Crisp minimal borders */
}

/* 3. Forest Green (Salad Bars, Organic & Healthy Eating) */
.theme-forest-green {
  --font-title: 'Lora', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-title-weight: 600;
  --color-primary: #588157; /* Deep organic sage */
  --color-primary-rgb: 88, 129, 87;
  --color-bg: #f4f7f4; /* Light herbal tea */
  --color-card: #ffffff;
  --color-border: #dad7cd;
  --color-text: #2f3e35; /* Dark forest pine */
  --color-text-muted: #5c6f64;
  --glass-bg: rgba(244, 247, 244, 0.9);
  --glass-border: rgba(88, 129, 87, 0.15);
  --theme-card-shadow: 0 6px 24px rgba(88, 129, 87, 0.04);
}

/* 4. Crimson Slate (Asian Zen, Sushi & Fusion) */
.theme-modern-crimson {
  --font-title: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-title-weight: 600;
  --color-primary: #e11d48; /* Red lacquer */
  --color-primary-rgb: 225, 29, 72;
  --color-bg: #0b0f19; /* Deep obsidian */
  --color-card: #111827;
  --color-border: #1f2937;
  --color-text: #f9fafb;
  --color-text-muted: #9ca3af;
  --glass-bg: rgba(17, 24, 39, 0.9);
  --glass-border: rgba(225, 29, 72, 0.2);
  --theme-title-transform: uppercase;
  --theme-letter-spacing: 2px; /* Spaced out minimalist letters */
  --theme-border-radius: 0px; /* Monolithic sharp design */
}

/* 5. Midnight Neon (High-End Cocktail Lounges, Nightlife Twist) */
.theme-midnight-neon {
  --font-title: 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-title-weight: 700;
  --color-primary: #c084fc; /* Glowing violet */
  --color-primary-rgb: 192, 132, 252;
  --color-bg: #05030e; /* Deep space black */
  --color-card: #0c0822; /* Royal velvet indigo */
  --color-border: #231942;
  --color-text: #f3efff;
  --color-text-muted: #9f86c0;
  --glass-bg: rgba(12, 8, 34, 0.85);
  --glass-border: rgba(192, 132, 252, 0.25);
  --theme-card-shadow: 0 0 20px rgba(192, 132, 252, 0.08);
}

/* 6. Ocean Breeze (Seafood, Spanish Beach & Tapas Bars) */
.theme-ocean-breeze {
  --font-title: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --font-title-weight: 700;
  --color-primary: #0284c7; /* Mediterranean sky blue */
  --color-primary-rgb: 2, 132, 199;
  --color-bg: #f0f9ff; /* Clear sea foam water */
  --color-card: #ffffff;
  --color-border: #bae6fd;
  --color-text: #0f172a; /* Deep blue-gray sea salt */
  --color-text-muted: #475569;
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(2, 132, 199, 0.15);
  --theme-card-shadow: 0 4px 15px rgba(2, 132, 199, 0.05);
}

/* 7. Cyber Punk (Mexican Cantina, Bold Street Food & Tacos) */
.theme-cyber-punk {
  --font-title: 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-title-weight: 700;
  --color-primary: #facc15; /* Vibrant marigold yellow */
  --color-primary-rgb: 250, 204, 21;
  --color-bg: #090909;
  --color-card: #151515;
  --color-border: #2e2e2e;
  --color-text: #ffffff;
  --color-text-muted: #a3a3a3;
  --glass-bg: rgba(21, 21, 21, 0.9);
  --glass-border: rgba(250, 204, 21, 0.3);
  --theme-card-shadow: 0 0 0 2px rgba(250, 204, 21, 0.1);
  --theme-border-radius: 8px;
}

/* 8. Retro Amber (Cosy Italian Pizzerias & Craft Beer Taverns) */
.theme-retro-amber {
  --font-title: 'Lora', serif;
  --font-body: 'Inter', sans-serif;
  --font-title-weight: 700;
  --color-primary: #ea580c; /* Spicy amber wood-fire */
  --color-primary-rgb: 234, 88, 12;
  --color-bg: #1e130c; /* Brick oven interior */
  --color-card: #2e1d11;
  --color-border: #452b1a;
  --color-text: #ffedd5; /* Warm baked dough */
  --color-text-muted: #d97706;
  --glass-bg: rgba(46, 29, 17, 0.9);
  --glass-border: rgba(234, 88, 12, 0.2);
}

/* 9. Cherry Blossom (French Patisseries & Luxury Desserts) */
.theme-cherry-blossom {
  --font-title: 'Cormorant Garamond', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-title-weight: 600;
  --color-primary: #db2777; /* Rose macaron pink */
  --color-primary-rgb: 219, 39, 119;
  --color-bg: #fff5f7; /* Crème Chantilly */
  --color-card: #ffffff;
  --color-border: #fbcfe8;
  --color-text: #3c091f; /* Bordeaux wine */
  --color-text-muted: #831843;
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(219, 39, 119, 0.15);
  --theme-card-shadow: 0 4px 20px rgba(219, 39, 119, 0.04);
  --theme-border-radius: 20px; /* Smooth elegant curves */
}

/* 10. Ethno Wood (Traditional Serbian Kafanas & Rustic Taverns) */
.theme-ethno-wood {
  --font-title: 'EB Garamond', serif;
  --font-body: 'Lora', serif; /* Aged storybook body */
  --font-title-weight: 700;
  --color-primary: #b45309; /* Roasted copper/clay cauldron */
  --color-primary-rgb: 180, 83, 9;
  --color-bg: #1d120a; /* Dark oak barrel planks */
  --color-card: #291a0f; /* Smoked walnut */
  --color-border: #452b1a;
  --color-text: #faf6eb; /* Old yellowed parchment */
  --color-text-muted: #cdbda8;
  --glass-bg: rgba(41, 26, 15, 0.9);
  --glass-border: rgba(180, 83, 9, 0.2);
  --theme-border-radius: 2px;
  --theme-card-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

/* Custom CSS twists applied via selectors on active themes */

/* Serbian Kafana Twist: rustic decorative border and aged headings */
.theme-ethno-wood .menu-section-title {
  text-align: center;
  border-bottom: 2px double var(--color-primary);
  letter-spacing: 1px;
  font-style: italic;
  padding-bottom: 12px;
}
.theme-ethno-wood .menu-item-row {
  border-style: dashed;
  border-width: 1px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.05) 50%, transparent 50%);
  background-size: 100% 4px;
}

/* French Patisserie Twist: elegant gold frames and centered text */
.theme-cherry-blossom .menu-section-title {
  text-align: center;
  font-style: italic;
  font-weight: 700;
  text-transform: capitalize;
  border-bottom: 1px solid var(--color-border);
  position: relative;
}
.theme-cherry-blossom .menu-section-title::after {
  content: "♦";
  position: absolute;
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-bg);
  padding: 0 10px;
  color: var(--color-primary);
  font-size: 0.8rem;
}
.theme-cherry-blossom .menu-item-name {
  font-weight: 700;
}
.theme-cherry-blossom .menu-item-row {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

/* Mexican Cantina Twist: high-energy box details and solid border colors */
.theme-cyber-punk .menu-section-title {
  background: var(--color-primary);
  color: var(--color-bg);
  padding: 8px 16px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transform: rotate(-1deg);
  display: inline-block;
  font-size: 1.25rem;
  border-bottom: none;
  border-radius: 4px;
}
.theme-cyber-punk .menu-item-row {
  border-left: 5px solid var(--color-primary);
  background: #111;
}

/* Asian Zen Twist: minimal spacing, clean indicators */
.theme-modern-crimson .menu-section-title {
  border-left: 3px solid var(--color-primary);
  border-bottom: none;
  padding-left: 12px;
  text-transform: uppercase;
  font-size: 1.2rem;
  letter-spacing: 2px;
}
.theme-modern-crimson .menu-item-row {
  border-radius: 0;
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: 1px solid var(--color-border);
  padding: 15px 5px;
}
.theme-modern-crimson .menu-item-name {
  font-family: var(--font-title);
  letter-spacing: 0.5px;
}

/* Italian Trattoria Twist: clean clay-colored titles and rounded cards */
.theme-warm-minimal .menu-section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.6rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-primary);
  padding-bottom: 6px;
}
.theme-warm-minimal .menu-item-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.1rem;
}
.theme-warm-minimal .menu-item-row {
  border: 1px solid var(--color-border);
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(189, 122, 92, 0.03);
}

/* Spanish Breeze Twist: Wave separator */
.theme-ocean-breeze .menu-section-title {
  font-family: var(--font-title);
  font-style: italic;
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 8px;
}
.theme-ocean-breeze .menu-item-row {
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

/* ==========================================================================
   Base reset and layouts
   ========================================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--color-bg);
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* ==========================================================================
   Layout Helpers
   ========================================================================== */

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

.flex { display: flex; }
.flex-direction-column, .flex-column { flex-direction: column; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-5 { gap: 5px; }
.gap-10 { gap: 10px; }
.gap-15 { gap: 15px; }
.gap-20 { gap: 20px; }

.badge {
  font-size: 0.7rem;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(var(--color-primary-rgb), 0.1);
  color: var(--color-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(var(--color-primary-rgb), 0.15);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  font-size: 0.9rem;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-bg) !important;
}
.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
  box-shadow: 0 8px 20px rgba(var(--color-primary-rgb), 0.25);
}

.btn-secondary {
  background-color: var(--color-card);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-secondary:hover {
  border-color: var(--color-primary);
  background-color: var(--color-bg);
}

.btn-danger {
  background-color: var(--color-danger);
  color: white !important;
}
.btn-danger:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.btn-warning {
  background-color: var(--color-warning);
  color: #000 !important;
  border: none;
}
.btn-warning:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
  box-shadow: 0 8px 20px rgba(var(--color-warning-rgb), 0.25);
}

.btn-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
  background-color: var(--color-card);
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition-normal);
}
.btn-circle:hover {
  border-color: var(--color-primary);
  background-color: var(--color-bg);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.btn-circle i {
  font-size: 1rem;
}
.btn-circle-danger {
  background-color: rgba(239, 68, 68, 0.08);
  color: var(--color-danger);
  border-color: rgba(239, 68, 68, 0.15);
}
.btn-circle-danger:hover {
  background-color: var(--color-danger);
  color: white !important;
  border-color: var(--color-danger);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

/* ==========================================================================
   Admin Interface Styles
   ========================================================================== */

.admin-header {
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-card);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.logo {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: var(--font-title-weight);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo span {
  color: var(--color-primary);
}

.admin-main {
  padding: 40px 0;
}

/* Upload Area */
.upload-zone {
  border: 2px dashed var(--color-border);
  background-color: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--color-primary);
  background-color: rgba(var(--color-primary-rgb), 0.02);
  box-shadow: var(--shadow-md);
}

.upload-icon {
  font-size: 3.5rem;
  color: var(--color-primary);
  margin-bottom: 20px;
  display: block;
  transition: transform var(--transition-normal);
}
.upload-zone:hover .upload-icon {
  transform: translateY(-5px);
}

.upload-input {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* Cards Grid */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.menu-card {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.menu-card:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--color-primary-rgb), 0.4);
  box-shadow: var(--shadow-md);
}

.menu-card-title {
  font-family: var(--font-title);
  font-size: 1.35rem;
  margin-bottom: 8px;
  font-weight: var(--font-title-weight);
}

.menu-card-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.menu-card-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ==========================================================================
   AI Editor UI (Simplified Tabbed Design)
   ========================================================================== */

.editor-container {
  display: none;
  flex-direction: column;
  gap: 30px;
}

.editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 20px;
}

.editor-card {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

/* Language selector tabs in Editor */
.editor-lang-tabs {
  display: flex;
  background-color: var(--color-bg);
  border-radius: var(--radius-sm);
  padding: 4px;
  border: 1px solid var(--color-border);
  width: max-content;
  margin-bottom: 24px;
}

.editor-lang-tab {
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text-muted);
  border: none;
  cursor: pointer;
  font-weight: 700;
  transition: all var(--transition-fast);
  font-size: 0.85rem;
}

.editor-lang-tab.active {
  background-color: var(--color-primary);
  color: var(--color-bg);
}

/* Category Blocks */
.category-block {
  border: 1px solid var(--color-border);
  background-color: var(--color-card);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.category-block-header {
  background-color: rgba(255, 255, 255, 0.01);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
}

.category-block-body {
  padding: 24px;
}

/* Inputs & Form Controls */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 11px 15px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.08);
}

/* Item cards in editor */
.editor-item-card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
  transition: border-color var(--transition-fast);
}

.editor-item-card:hover {
  border-color: rgba(var(--color-primary-rgb), 0.3);
}

.editor-item-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .editor-item-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

.editor-item-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px dashed var(--color-border);
}

/* ==========================================================================
   Interactive Phone Simulator Mockup for Theme Previews
   ========================================================================== */

.phone-mockup {
  width: 100%;
  max-width: 250px;
  height: 440px;
  border: 12px solid #1e1e24;
  border-radius: 36px;
  background-color: var(--color-bg);
  color: var(--color-text);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg), 0 0 0 2px rgba(255,255,255,0.05);
  font-family: var(--font-body);
  transition: all var(--transition-normal);
  margin: 0 auto;
}

.phone-mockup-screen {
  padding: 15px;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  scrollbar-width: none;
}
.phone-mockup-screen::-webkit-scrollbar { display: none; }

.phone-mockup-header {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: var(--font-title-weight);
  text-align: center;
  margin-bottom: 15px;
  color: var(--color-text);
}
.phone-mockup-header span {
  color: var(--color-primary);
}

.phone-mockup-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 15px;
}
.phone-mockup-nav::-webkit-scrollbar { display: none; }

.phone-mockup-nav-btn {
  padding: 4px 10px;
  font-size: 0.65rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background-color: rgba(var(--color-primary-rgb), 0.1);
  color: var(--color-primary);
  border: 1px solid rgba(var(--color-primary-rgb), 0.2);
  white-space: nowrap;
}

.phone-mockup-item {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.phone-mockup-item-title {
  font-family: var(--font-title);
  font-weight: var(--font-title-weight);
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
}

.phone-mockup-item-price {
  color: var(--color-primary);
  font-weight: 800;
}

.phone-mockup-item-desc {
  font-size: 0.65rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   Public Mobile Viewer (Ultra Clean, Guest Interface)
   ========================================================================== */

.public-menu-body {
  max-width: 550px;
  margin: 0 auto;
  background-color: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
}

.public-menu-body h1,
.public-menu-body h3,
.public-menu-body p,
.public-menu-body .menu-item-name {
  color: var(--color-text);
}

.public-header {
  padding: 35px 24px 25px 24px;
  text-align: center;
  position: relative;
  border-bottom: 1px solid var(--color-border);
}

.public-logo {
  font-family: var(--font-title);
  font-size: 2.2rem;
  margin-bottom: 8px;
  font-weight: var(--font-title-weight);
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.public-logo-image img{
    max-width: 200px;
}

.public-logo span {
  color: var(--color-primary);
}

.public-lang-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.public-lang-btn {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.public-lang-btn.active {
  background: var(--color-primary);
  color: var(--color-bg);
  border-color: var(--color-primary);
}

/* Sticky Category Scroll Bar */
.category-nav-wrapper {
  position: sticky;
  top: 0;
  background-color: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 50;
}

.category-nav {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  padding: 14px 16px;
  gap: 10px;
  scroll-behavior: smooth;
}

.category-nav::-webkit-scrollbar { display: none; }
.category-nav { -ms-overflow-style: none; scrollbar-width: none; }

.category-nav-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background-color: transparent;
  color: var(--color-text-muted);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.category-nav-btn.active {
  background-color: rgba(var(--color-primary-rgb), 0.1);
  color: var(--color-primary);
  border-color: rgba(var(--color-primary-rgb), 0.3);
  font-weight: 700;
}

/* Public Items List */
.menu-section {
  padding: 0 24px;
  margin-top: 35px;
  margin-bottom: 35px;
  scroll-margin-top: 80px; /* Snaps category nav header */
}

.menu-section-title {
  font-family: var(--font-title);
  font-size: 1.45rem;
  color: var(--color-primary);
  margin-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 10px;
  font-weight: var(--font-title-weight);
}

.menu-items-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.menu-item-row {
  display: flex;
  justify-content: space-between;
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.menu-item-row:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--color-primary-rgb), 0.3);
  box-shadow: var(--shadow-md);
}

.menu-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: var(--font-body);
}

.menu-item-name-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.menu-item-name {
  font-family: var(--font-title);
  font-weight: var(--font-title-weight);
  font-size: 1.05rem;
}

.menu-item-price {
  font-weight: 800;
  color: var(--color-primary);
  white-space: nowrap;
}

.menu-item-description {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.menu-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Detail Modal */
.item-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.item-modal.active {
  opacity: 1;
  pointer-events: all;
}

.item-modal-content {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  max-width: 440px;
  width: 100%;
  padding: 36px;
  position: relative;
  transform: translateY(15px);
  transition: transform var(--transition-normal);
  box-shadow: var(--shadow-lg);
  font-family: var(--font-body);
}

.item-modal.active .item-modal-content {
  transform: translateY(0);
}

.item-modal-close {
  position: absolute;
  top: 20px; right: 20px;
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.item-modal-close:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--color-text);
}

.item-modal-title {
  font-family: var(--font-title);
  font-size: 1.8rem;
  margin-bottom: 8px;
  font-weight: var(--font-title-weight);
}

.item-modal-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 24px;
}

.item-modal-description {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* ==========================================================================
   Global Toast Notifications
   ========================================================================== */

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--color-card);
  border-left: 4px solid var(--color-primary);
  color: var(--color-text);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
}

.toast.active {
  transform: translateY(0);
  opacity: 1;
}

.toast.toast-danger { border-left-color: var(--color-danger); }
.toast.toast-success { border-left-color: var(--color-success); }

/* ==========================================================================
   AI Loader Overlay Styles
   ========================================================================== */

.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.loader-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.ai-orb {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-primary) 0%, rgba(var(--color-primary-rgb), 0.15) 60%, transparent 100%);
  box-shadow: 0 0 35px rgba(var(--color-primary-rgb), 0.6);
  animation: pulse-orb 2s infinite ease-in-out;
  margin-bottom: 45px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Inner scanning bar */
.ai-orb::before {
  content: '';
  position: absolute;
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  box-shadow: 0 0 10px var(--color-primary);
  animation: scan-line 1.5s infinite ease-in-out;
}

/* Outer orbit ring 1 (Dashed) */
.ai-orb::after {
  content: '';
  position: absolute;
  top: -15px; left: -15px; right: -15px; bottom: -15px;
  border-radius: 50%;
  border: 2px dashed rgba(var(--color-primary-rgb), 0.4);
  animation: rotate-orb-clockwise 6s infinite linear;
}

/* Outer orbit ring 2 (Dual Arc) */
.ai-orb-outer {
  position: absolute;
  top: -25px; left: -25px; right: -25px; bottom: -25px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-left-color: var(--color-primary);
  border-right-color: var(--color-primary);
  opacity: 0.6;
  animation: rotate-orb-counter 4s infinite linear;
}

@keyframes pulse-orb {
  0%, 100% {
    transform: scale(0.95);
    box-shadow: 0 0 30px rgba(var(--color-primary-rgb), 0.5);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(var(--color-primary-rgb), 0.8), 0 0 20px rgba(var(--color-primary-rgb), 0.3);
  }
}

@keyframes rotate-orb-clockwise {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes rotate-orb-counter {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

@keyframes scan-line {
  0%, 100% { transform: translateY(-28px); opacity: 0.3; }
  50% { transform: translateY(28px); opacity: 1; }
}

.loader-text {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
  text-align: center;
  letter-spacing: 0.5px;
}

.loader-subtext {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text-muted);
  text-align: center;
  max-width: 500px;
  line-height: 1.6;
}

/* Loader Timer and Live Status Styles */
.loader-timer {
  margin: 20px auto 10px auto;
  width: 100%;
  max-width: 360px;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05), 0 4px 20px rgba(0, 0, 0, 0.25);
  text-align: left;
}

.loader-timer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.loader-timer-label {
  color: var(--color-text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.loader-timer-value {
  color: var(--color-text);
  font-weight: 700;
  font-family: monospace;
  font-size: 1.05rem;
  background: rgba(var(--color-primary-rgb), 0.12);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(var(--color-primary-rgb), 0.25);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.timer-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
}

.timer-progress-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), #3b82f6, var(--color-primary));
  background-size: 200% 100%;
  border-radius: 4px;
  transition: width 1s linear;
  animation: timer-progress-shine 2s infinite linear;
}

@keyframes timer-progress-shine {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.loader-timer-note {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 10px;
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.loader-timer-note i {
  color: var(--color-warning);
  margin-top: 2px;
  flex-shrink: 0;
}

#skip-translations-wrapper {
  transition: all 0.2s ease;
}

#skip-translations-wrapper:hover {
  border-color: var(--color-primary) !important;
  color: var(--color-text) !important;
  background-color: rgba(var(--color-primary-rgb), 0.04) !important;
}

#skip-translations-wrapper.active {
  border-color: var(--color-primary) !important;
  color: var(--color-text) !important;
  background-color: rgba(var(--color-primary-rgb), 0.08) !important;
}

/* ==========================================================================
   Large Phone Simulator / Mockup Styles (Shared)
   ========================================================================== */

.phone-mockup-large {
  width: 100%;
  max-width: 360px;
  height: 650px;
  border: 12px solid #18181c;
  border-radius: 42px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg), 0 0 0 2px rgba(255,255,255,0.05);
  background-color: var(--color-bg);
  transition: all var(--transition-normal);
  margin: 0 auto;
}

.phone-mockup-screen-large {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  scrollbar-width: none;
  background-color: var(--color-bg);
}
.phone-mockup-screen-large::-webkit-scrollbar { display: none; }

.phone-mockup-screen-large .public-menu-body {
  width: 100%;
  min-height: 100%;
  box-shadow: none;
}

/* ==========================================================================
   Theme Picker Visual Sidebar Selector Styles
   ========================================================================== */

.theme-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.theme-picker-card {
  position: relative;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  user-select: none;
}

.theme-picker-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.15);
}

.theme-picker-card.active {
  border-color: var(--color-primary);
  background: rgba(var(--color-primary-rgb), 0.05);
  box-shadow: 0 0 0 2px var(--color-primary);
}

.theme-card-swatch {
  width: 100%;
  height: 38px;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.theme-card-swatch .color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.theme-card-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 2px;
  line-height: 1.2;
}

.theme-card-desc {
  font-size: 0.6rem;
  color: var(--color-text-muted);
  line-height: 1.2;
}

.theme-card-preview-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--transition-fast), background var(--transition-fast);
  padding: 0;
}

.theme-picker-card:hover .theme-card-preview-btn {
  opacity: 1;
}

.theme-card-preview-btn:hover {
  background: var(--color-primary) !important;
  color: #000 !important;
}

/* ==========================================================================
   Logo Wrapper & Slogan Styles (Modern Sans-Serif Layout)
   ========================================================================== */

.logo-wrapper {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-wrapper i {
  font-size: 2.1rem;
  color: var(--color-primary);
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.1;
}

.logo-title {
  font-family: var(--font-body) !important;
  font-size: 1.6rem;
  font-weight: 800 !important;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text);
}

.logo-title span {
  color: var(--color-primary);
}

}

/* ==========================================================================
   THE 16 NEW INDUSTRY THEMES (FITNESS, WELLNESS, MEDICAL, AUTO)
   ========================================================================== */

/* --- 1. FITNESS CENTRI --- */
/* Neon Power (Light) */
.theme-fitness-neon-light {
  --font-title: 'Space Grotesk', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --font-title-weight: 700;
  --color-primary: #84cc16; /* Lime Green */
  --color-primary-rgb: 132, 204, 22;
  --color-bg: #f7fee7;
  --color-card: #ffffff;
  --color-border: #d9f99d;
  --color-text: #1a2e05;
  --color-text-muted: #4d7c0f;
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(132, 204, 22, 0.2);
  --theme-card-shadow: 0 4px 18px rgba(132, 204, 22, 0.08);
  --theme-border-radius: 12px;
}

/* Neon Power (Dark) */
.theme-fitness-neon-dark {
  --font-title: 'Space Grotesk', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --font-title-weight: 700;
  --color-primary: #a3e635; /* Neon Lime */
  --color-primary-rgb: 163, 230, 53;
  --color-bg: #090d02;
  --color-card: #121a04;
  --color-border: #273e07;
  --color-text: #f7fee7;
  --color-text-muted: #a1a1aa;
  --glass-bg: rgba(18, 26, 4, 0.85);
  --glass-border: rgba(163, 230, 53, 0.15);
  --theme-card-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --theme-border-radius: 12px;
}

/* Iron Strength (Light) */
.theme-fitness-steel-light {
  --font-title: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-title-weight: 800;
  --color-primary: #f97316; /* Steel Orange */
  --color-primary-rgb: 249, 115, 22;
  --color-bg: #f8fafc;
  --color-card: #ffffff;
  --color-border: #e2e8f0;
  --color-text: #0f172a;
  --color-text-muted: #64748b;
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(249, 115, 22, 0.15);
  --theme-card-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  --theme-border-radius: 4px;
  --theme-title-transform: uppercase;
}

/* Iron Strength (Dark) */
.theme-fitness-steel-dark {
  --font-title: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-title-weight: 800;
  --color-primary: #fb923c; /* Steel Orange Dark */
  --color-primary-rgb: 251, 146, 60;
  --color-bg: #0f172a;
  --color-card: #1e293b;
  --color-border: #334155;
  --color-text: #f8fafc;
  --color-text-muted: #94a3b8;
  --glass-bg: rgba(30, 41, 59, 0.9);
  --glass-border: rgba(251, 146, 60, 0.2);
  --theme-card-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --theme-border-radius: 4px;
  --theme-title-transform: uppercase;
}


/* --- 2. WELLNESS & SPA --- */
/* Zen Oasis (Light) */
.theme-wellness-oasis-light {
  --font-title: 'Lora', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-title-weight: 600;
  --color-primary: #0d9488; /* Calm Teal */
  --color-primary-rgb: 13, 148, 136;
  --color-bg: #fafaf9; /* Stone Warm Warm */
  --color-card: #ffffff;
  --color-border: #f5f5f4;
  --color-text: #1c1917;
  --color-text-muted: #78716c;
  --glass-bg: rgba(250, 250, 249, 0.9);
  --glass-border: rgba(13, 148, 136, 0.15);
  --theme-card-shadow: 0 4px 20px rgba(13, 148, 136, 0.04);
  --theme-border-radius: 20px;
}

/* Zen Oasis (Dark) */
.theme-wellness-oasis-dark {
  --font-title: 'Lora', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-title-weight: 600;
  --color-primary: #2dd4bf; /* Bright Calm Teal */
  --color-primary-rgb: 45, 212, 191;
  --color-bg: #111827;
  --color-card: #1f2937;
  --color-border: #374151;
  --color-text: #f9fafb;
  --color-text-muted: #9ca3af;
  --glass-bg: rgba(31, 41, 55, 0.85);
  --glass-border: rgba(45, 212, 191, 0.15);
  --theme-card-shadow: 0 4px 25px rgba(0,0,0,0.35);
  --theme-border-radius: 20px;
}

/* Mineral Spa (Light) */
.theme-wellness-spa-light {
  --font-title: 'Cormorant Garamond', serif;
  --font-body: 'Inter', sans-serif;
  --font-title-weight: 600;
  --color-primary: #0891b2; /* Deep Cyan */
  --color-primary-rgb: 8, 145, 178;
  --color-bg: #f0fdfa; /* Soft seafoam background */
  --color-card: #ffffff;
  --color-border: #ccfbf1;
  --color-text: #0f172a;
  --color-text-muted: #475569;
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(8, 145, 178, 0.15);
  --theme-card-shadow: 0 4px 20px rgba(8, 145, 178, 0.05);
  --theme-border-radius: 16px;
}

/* Mineral Spa (Dark) */
.theme-wellness-spa-dark {
  --font-title: 'Cormorant Garamond', serif;
  --font-body: 'Inter', sans-serif;
  --font-title-weight: 600;
  --color-primary: #22d3ee; /* Soft cyan neon */
  --color-primary-rgb: 34, 211, 238;
  --color-bg: #083344; /* Ocean depths */
  --color-card: #0e7490;
  --color-border: #155e75;
  --color-text: #ecfeff;
  --color-text-muted: #a5f3fc;
  --glass-bg: rgba(14, 116, 144, 0.85);
  --glass-border: rgba(34, 211, 238, 0.2);
  --theme-card-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --theme-border-radius: 16px;
}


/* --- 3. STOMATOLOGIJA & MEDICINA --- */
/* Clinical Blue (Light) */
.theme-medical-clinical-light {
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-title-weight: 700;
  --color-primary: #0284c7; /* Clinical Blue */
  --color-primary-rgb: 2, 132, 199;
  --color-bg: #f0f9ff;
  --color-card: #ffffff;
  --color-border: #bae6fd;
  --color-text: #0f172a;
  --color-text-muted: #475569;
  --glass-bg: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(2, 132, 199, 0.1);
  --theme-card-shadow: 0 4px 12px rgba(2, 132, 199, 0.04);
  --theme-border-radius: 8px;
}

/* Clinical Blue (Dark) */
.theme-medical-clinical-dark {
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-title-weight: 700;
  --color-primary: #38bdf8; /* Medical Sky Light */
  --color-primary-rgb: 56, 189, 248;
  --color-bg: #0c4a6e;
  --color-card: #075985;
  --color-border: #0c4a6e;
  --color-text: #f0f9ff;
  --color-text-muted: #bae6fd;
  --glass-bg: rgba(7, 89, 133, 0.9);
  --glass-border: rgba(56, 189, 248, 0.2);
  --theme-card-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  --theme-border-radius: 8px;
}

/* Dental Mint (Light) */
.theme-medical-herbal-light {
  --font-title: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-title-weight: 700;
  --color-primary: #059669; /* Mint Emerald */
  --color-primary-rgb: 5, 150, 105;
  --color-bg: #f0fdf4;
  --color-card: #ffffff;
  --color-border: #bbf7d0;
  --color-text: #064e3b;
  --color-text-muted: #047857;
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(5, 150, 105, 0.15);
  --theme-card-shadow: 0 4px 15px rgba(5, 150, 105, 0.05);
  --theme-border-radius: 10px;
}

/* Dental Mint (Dark) */
.theme-medical-herbal-dark {
  --font-title: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-title-weight: 700;
  --color-primary: #34d399; /* Mint Emerald Light */
  --color-primary-rgb: 52, 211, 153;
  --color-bg: #064e3b;
  --color-card: #065f46;
  --color-border: #047857;
  --color-text: #ecfdf5;
  --color-text-muted: #a7f3d0;
  --glass-bg: rgba(6, 95, 70, 0.9);
  --glass-border: rgba(52, 211, 153, 0.2);
  --theme-card-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --theme-border-radius: 10px;
}


/* --- 4. AUTO SERVISI & PERIONICE --- */
/* Carbon Speed (Light) */
.theme-auto-carbon-light {
  --font-title: 'Space Grotesk', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --font-title-weight: 700;
  --color-primary: #dc2626; /* Racing Red */
  --color-primary-rgb: 220, 38, 38;
  --color-bg: #f3f4f6;
  --color-card: #ffffff;
  --color-border: #e5e7eb;
  --color-text: #111827;
  --color-text-muted: #4b5563;
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(220, 38, 38, 0.15);
  --theme-card-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  --theme-border-radius: 0px; /* Industrial sharp edges */
}

/* Carbon Speed (Dark) */
.theme-auto-carbon-dark {
  --font-title: 'Space Grotesk', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --font-title-weight: 700;
  --color-primary: #ef4444; /* Racing Red Light */
  --color-primary-rgb: 239, 68, 68;
  --color-bg: #0b0c10; /* Pitch carbon */
  --color-card: #1f2833;
  --color-border: #2d3748;
  --color-text: #f3f4f6;
  --color-text-muted: #9ca3af;
  --glass-bg: rgba(31, 40, 51, 0.9);
  --glass-border: rgba(239, 68, 68, 0.2);
  --theme-card-shadow: 0 4px 25px rgba(0, 0, 0, 0.45);
  --theme-border-radius: 0px; /* Industrial sharp edges */
}

/* Garage Amber (Light) */
.theme-auto-garage-light {
  --font-title: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-title-weight: 800;
  --color-primary: #d97706; /* Warning Amber */
  --color-primary-rgb: 217, 119, 6;
  --color-bg: #fffbeb;
  --color-card: #ffffff;
  --color-border: #fde68a;
  --color-text: #451a03;
  --color-text-muted: #78350f;
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(217, 119, 6, 0.15);
  --theme-card-shadow: 0 4px 15px rgba(217, 119, 6, 0.05);
  --theme-border-radius: 6px;
}

/* Garage Amber (Dark) */
.theme-auto-garage-dark {
  --font-title: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-title-weight: 800;
  --color-primary: #fbbf24; /* Caution Yellow */
  --color-primary-rgb: 251, 191, 36;
  --color-bg: #1c1917; /* Grease black */
  --color-card: #292524;
  --color-border: #44403c;
  --color-text: #fffbeb;
  --color-text-muted: #d6d3d1;
  --glass-bg: rgba(41, 37, 36, 0.85);
  --glass-border: rgba(251, 191, 36, 0.2);
  --theme-card-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  --theme-border-radius: 6px;
}

/* Custom Themes Dynamic Typography Size Mappings */
[class*="theme-custom-"] .public-logo,
[class*="theme-custom-"] .menu-section-title,
.theme-live-custom .public-logo,
.theme-live-custom .menu-section-title {
  font-size: var(--font-title-size, 2.2rem) !important;
}

[class*="theme-custom-"] .menu-item-name,
[class*="theme-custom-"] .menu-item-price,
.theme-live-custom .menu-item-name,
.theme-live-custom .menu-item-price {
  font-size: var(--font-body-size, 1.05rem) !important;
}

[class*="theme-custom-"] .menu-item-description,
.theme-live-custom .menu-item-description {
  font-size: calc(var(--font-body-size, 0.95rem) * 0.85) !important;
}

/* Admin Layout Font Override (Always use modern sans-serif fonts in the backend) */
body.admin-layout {
  --font-title: 'Plus Jakarta Sans', 'Inter', sans-serif !important;
  --font-serif: 'Plus Jakarta Sans', 'Inter', sans-serif !important;
}

/* layout view toggler styles */
.btn-view-toggle {
  background: none;
  border: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-view-toggle.active {
  background-color: var(--color-primary) !important;
  color: #000 !important;
}

/* table-responsive wrapper */
.table-responsive {
  overflow-x: auto;
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 30px;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.admin-table th {
  background-color: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 20px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-primary);
}
.admin-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
  font-size: 0.95rem;
}
.admin-table tr:last-child td {
  border-bottom: none;
}
.admin-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.01);
}
.table-link {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}
.table-link:hover {
  color: var(--color-primary);
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.justify-end {
  justify-content: flex-end;
}

/* ==========================================================================
   Responsive & Mobile Improvements
   ========================================================================== */
@media (max-width: 768px) {
  /* Admin Header mobile layout */
  .admin-header .container {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 15px;
  }

  .admin-header .logo-wrapper {
    margin-bottom: 2px;
    text-align: center;
  }

  /* Scrollable horizontal navigation for admin buttons on mobile */
  .admin-header .flex.gap-10 {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: -8px;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
  }

  .admin-header .flex.gap-10::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }

  .admin-header .btn {
    padding: 8px 14px;
    font-size: 0.825rem;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
  }

  /* Grid layout adjustments for forms */
  .form-grid-2 {
    grid-template-columns: 1fr !important;
  }

  .form-checkbox-group {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  /* Mobile tables compatibility */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}



