/* ─────────────────────────────────────────────
   Verbena Design — Light Frosted Glass
   Minimalist, Airy & Elegant.
   ───────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Colors - Sophisticated Light Glass */
  --bg-base:      #fdfdfd; 
  --bg-surface:   rgba(255, 255, 255, 0.4);
  --bg-card:      rgba(255, 255, 255, 0.65);
  --bg-card-hover: rgba(255, 255, 255, 0.85);
  
  --border:       rgba(255, 255, 255, 0.8); /* White border for contrast on light glass */
  --border-outer: rgba(0, 0, 0, 0.05); /* Subtle dark border line */
  
  --text-primary: #1a1a1a;
  --text-muted:   #555555;
  --text-subtle:  #999999;
  
  --accent:       #3b82f6; /* Modern Blue */
  --accent-soft:  rgba(59, 130, 246, 0.1);
  
  --success:      #10b981;
  --error:        #ef4444;
  
  --radius-sm:    10px;
  --radius-md:    16px;
  --radius-lg:    24px;
  --radius-xl:    32px;
  
  --shadow-soft:  0 10px 40px rgba(0, 0, 0, 0.04);
  --shadow-lg:    0 20px 60px rgba(0, 0, 0, 0.08);
  --transition:   all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ════════════ DECORATIVE ORBS (Pastel/Light) ════════════ */
body::before, body::after {
  content: '';
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.15;
  pointer-events: none;
}
body::before {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #8b5cf6 0%, #3b82f6 100%);
  top: -200px; left: -100px;
}
body::after {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #f472b6 0%, #f97316 100%);
  bottom: -150px; right: -50px;
}

/* ════════════ NAVIGATION ════════════ */
.nav-link {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}
.nav-link:hover {
  background: white;
  color: #831843;
}
.nav-link.active {
  background: white;
  color: #831843;
  border-color: #fbcfe8;
  box-shadow: 0 4px 12px rgba(251, 207, 232, 0.4);
}

/* ════════════ ORDERS TABLE ════════════ */
#orders-list-body tr {
  transition: var(--transition);
  border-bottom: 1px solid #f1f5f9;
}
#orders-list-body tr:hover {
  background: rgba(251, 207, 232, 0.05);
}
#orders-list-body td {
  padding: 1.25rem 1.5rem;
  font-size: 0.85rem;
  color: #475569;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Excel-like Statuses mapped to Verbena Luxury */
.status-paid { background: #dcfce7; color: #166534; }      /* Green */
.status-pending { background: #fef9c3; color: #854d0e; }   /* Yellow */
.status-priority { background: #fee2e2; color: #991b1b; }  /* Red */
.status-process { background: #dbeafe; color: #1e40af; }   /* Blue */

.font-mono-premium {
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.02em;
}

/* ════════════ NAV ════════════ */
.glass-nav {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(25px) saturate(200%);
  -webkit-backdrop-filter: blur(25px) saturate(200%);
  border-bottom: 1px solid var(--border-outer);
}

.nav-btn {
  color: var(--text-primary);
  font-weight: 600;
  transition: var(--transition);
  border-radius: 12px;
}
.nav-btn:hover { background: rgba(0, 0, 0, 0.03); }

/* ════════════ CARDS ════════════ */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(25px) saturate(200%);
  -webkit-backdrop-filter: blur(25px) saturate(200%);
  border: 1.5px solid var(--border);
  outline: 1px solid var(--border-outer);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}
.glass-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ════════════ BUTTONS ════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 2.2rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  background: #fbcfe8; /* Pastel Rose */
  color: #831843; 
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 10px 20px rgba(251, 207, 232, 0.3);
}
.btn-primary:hover {
  background: #f9a8d4;
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(251, 207, 232, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  background: #fff;
  color: var(--text-primary);
  border: 1px solid var(--border-outer);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.btn-secondary:hover {
  border-color: var(--text-primary);
  background: #fafafa;
}

.btn-danger {
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  background: #fff;
  color: var(--error);
  border: 1.5px solid #fee2e2;
  cursor: pointer;
}
.btn-danger:hover { background: #fee2e2; }

/* ════════════ INPUTS ════════════ */
.input-group { display: flex; flex-direction: column; gap: 0.4rem; }
.input-label { font-size: 0.7rem; font-weight: 800; color: var(--text-subtle); text-transform: uppercase; letter-spacing: 0.1em; }

.app-input {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1.5px solid var(--border-outer);
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
}
.app-input:focus {
  border-color: var(--text-primary);
  background: #fff;
}

/* ════════════ TOGGLES ════════════ */
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: #eee;
  cursor: pointer;
  transition: var(--transition);
}
.toggle-switch.active { 
  background: #fbcfe8; 
}
.toggle-switch.active .toggle-thumb {
  background: #831843;
}
.toggle-thumb {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.toggle-switch.active .toggle-thumb { transform: translateX(20px); }

/* ════════════ TABS ════════════ */
.tab-btn {
  padding: 0.8rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-subtle);
  cursor: pointer;
  transition: var(--transition);
}
.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active {
  background: #fff;
  color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* ════════════ ALIGN BUTTONS ════════════ */
.align-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  border: 1.5px solid var(--border-outer);
  color: var(--text-subtle);
  cursor: pointer;
  transition: var(--transition);
}
.align-btn.active {
  background: #fbcfe8;
  color: #831843;
  border-color: #fbcfe8;
}

/* ════════════ ITEMS ════════════ */
.product-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border-outer);
}

/* ════════════ PREVIEW ════════════ */
.ticket-preview-shell {
  background: #f0f0f0;
  padding: 40px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-outer);
}

/* ════════════ MODALS ════════════ */
.modal-backdrop {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
}
.modal-card {
  background: #fff;
  border: 1px solid var(--border-outer);
  border-radius: var(--radius-xl);
  box-shadow: 0 40px 80px rgba(0,0,0,0.1);
  color: var(--text-primary);
}

/* ════════════ TOASTS ════════════ */
.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--border-outer);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  pointer-events: auto;
  animation: toastIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast.success { border-left: 4px solid var(--success); }
.toast.error   { border-left: 4px solid var(--error); }
.toast.warning { border-left: 4px solid #f59e0b; }

.toast.out {
  animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(0.9); }
}

@media (max-width: 767px) { .desktop-only { display: none !important; } }
