/* Initial Loader Overlay */
.initial-loader {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 10, 20, 0.5); /* Semi-transparent */
  backdrop-filter: blur(15px); /* Elegant blur */
  -webkit-backdrop-filter: blur(15px);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease-out, visibility 0.4s;
}
.initial-loader.hidden {
  opacity: 0;
  visibility: hidden;
}
.loader-content { text-align: center; }

:root {
  /* HSL Colors - Vibrant Carnival Aesthetics */
  --bg-dark: hsl(240, 15%, 8%);
  --bg-surface: hsla(240, 15%, 12%, 0.65);
  
  --primary-hue: 320; /* Deep Pink/Magenta */
  --primary-color: hsl(var(--primary-hue), 85%, 60%);
  --primary-hover: hsl(var(--primary-hue), 85%, 50%);
  
  --secondary-hue: 35; /* Gold/Orange */
  --secondary-color: hsl(var(--secondary-hue), 95%, 55%);
  --secondary-hover: hsl(var(--secondary-hue), 95%, 45%);
  
  --text-main: hsl(0, 0%, 98%);
  --text-muted: hsl(240, 10%, 75%);
  
  --glass-border: hsla(0, 0%, 100%, 0.1);
  --glass-glow: hsla(var(--primary-hue), 85%, 60%, 0.2);
  
  --font-main: 'Outfit', sans-serif;
  --transition-speed: 0.3s;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
}

/* Base Utility Classes */
.hidden { display: none !important; }
.text-muted { color: var(--text-muted); }
.text-pix { color: #32bcad; } /* PIX brand color */
.text-secondary { color: var(--secondary-color); }
.text-card { color: var(--secondary-color); }
.text-card { color: var(--secondary-color); }

/* Dynamic Background Glows */
.background-effects {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(circle at top right, #1f1122 0%, var(--bg-dark) 60%);
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 10s infinite ease-in-out alternate;
}

.orb-1 {
  width: 40vw; height: 40vw;
  background: var(--primary-color);
  top: -10%; left: -10%;
}

.orb-2 {
  width: 30vw; height: 30vw;
  background: var(--secondary-color);
  bottom: -10%; right: -5%;
  animation-delay: -5s;
}

.orb-3 {
  width: 20vw; height: 20vw;
  background: hsl(280, 80%, 50%);
  top: 40%; left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -2s;
  opacity: 0.3;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(20px, 40px) scale(1.1); }
}

/* App Layout */
.app-container {
  width: 100%;
  max-width: 1200px;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Glassmorphism Panels */
.glass-panel {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  animation: fadeIn 0.4s ease-out forwards;
  max-width: 800px;
  width: 95%;
  margin: 0 auto;
}

/* Painéis mais largos para o Dashboard do Admin */
#admin-dashboard-view .glass-panel {
    max-width: 1200px;
    width: 95%;
    margin-left: auto;
    margin-right: auto;
}

.small-text-wrap {
    font-size: 0.85rem;
    word-break: break-word;
    min-width: 150px;
}

.login-card { max-width: 450px; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Typography */
.app-header {
  text-align: center;
  width: 100%;
  z-index: 50;
}
.app-header .logo-text { font-size: 3.5rem; font-weight: 900; line-height: 1.1; margin-bottom: 0.5rem; }
.app-header .logo-text span {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.app-header .logo-subtitle {
  font-size: 0.85rem;
  color: #ffffff;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: -0.5rem;
  opacity: 0.8;
}
.app-header .subtitle { font-size: 1.3rem; color: var(--text-muted); font-weight: 300; letter-spacing: 2px; text-transform: uppercase; }

.logo-text-large {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.logo-text-large span {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gradient-text {
  background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.content-header { margin-bottom: 2rem; text-align: center; }
.content-header h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 0.5rem; }

.login-header { text-align: center; margin-bottom: 2rem; }
.login-header h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 0.5rem; }
.subtitle { font-size: 1.1rem; color: var(--text-muted); font-weight: 300; }

/* Forms & Inputs */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.input-group {
  position: relative;
  display: flex;
  align-items: center;
}
.input-group i {
  position: absolute;
  left: 1rem;
  font-size: 1.25rem;
  color: var(--text-muted);
}
.input-group input,
.input-group select {
  width: 100%;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1rem 1rem 1rem 3rem;
  color: var(--text-main);
  font-size: 1rem;
  outline: none;
  transition: all var(--transition-speed) ease;
  appearance: none;
}
.input-group input:focus,
.input-group select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px var(--glass-glow);
}

.input-group select option {
  background: #1a1a1a;
  color: white;
}

/* Elegant Native Select */
.elegant-select-wrapper {
    position: relative;
    max-width: 320px;
    margin: 0 auto;
}

.elegant-native-select {
    width: 100%;
    height: 54px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 0 1rem 0 3.2rem;
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
}

.elegant-native-select:focus {
    border-color: var(--secondary-color);
    background: rgba(var(--secondary-hue), 95%, 55%, 0.05);
    box-shadow: 0 0 20px rgba(var(--secondary-hue), 95%, 55%, 0.15);
}

.select-icon-left {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: var(--secondary-color);
    z-index: 2;
    pointer-events: none;
}

.select-icon-right {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--text-muted);
    z-index: 2;
    pointer-events: none;
}

.elegant-native-select option {
    background: #14141e;
    color: white;
    padding: 10px;
}

.otp-inputs {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}
.otp-digit {
  width: 50px; height: 60px;
  font-size: 1.5rem; font-weight: 700;
  text-align: center;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-main);
  outline: none;
  transition: all 0.2s;
}
.otp-digit:focus {
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

/* Buttons */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition-speed) ease;
}
.btn-block { width: 100%; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: #fff;
  box-shadow: 0 4px 15px rgba(230, 0, 126, 0.3);
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 0, 126, 0.5);
}
.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn-primary:disabled {
  background: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: none;
}

.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: var(--text-main);
  border: 1px solid var(--glass-border);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
}

.btn-icon {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  margin-bottom: 1.5rem;
  transition: all 0.2s;
}
.btn-icon:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.logout-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.8rem;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-muted);
}
.logout-btn.hidden {
  display: none !important;
}
.logout-btn i {
  font-size: 1.6rem;
}
.logout-text {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.logout-btn:hover {
  background: rgba(var(--primary-hue), 80%, 50%, 0.2);
  border-color: var(--primary-color);
  color: white;
}

.register-phone-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 0;
}
.ddd-group {
  flex: 0 0 80px !important;
}
.phone-group {
  flex: 1;
}

.auth-links p { text-align: center; font-size: 0.9rem; color: var(--text-muted); }
.auth-links a { color: var(--secondary-color); text-decoration: none; font-weight: 600; }
.auth-links a:hover { text-decoration: underline; }

/* Custom Select Dropdown (Elegant) */
.custom-select-wrapper { position: relative; margin: 2rem 0; user-select: none; }
.custom-select { position: relative; }
.select-trigger {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: border-color var(--transition-speed);
}
.select-trigger:hover { border-color: rgba(255,255,255,0.3); }
.custom-options {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  margin-top: 0.5rem;
  opacity: 0; visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 20;
}
.custom-select.open .custom-options {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.custom-option {
  display: block;
  padding: 1rem 1.2rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.2s;
}
.custom-option:last-child { border-bottom: none; }
.custom-option:hover { background: rgba(255,255,255,0.1); color: var(--secondary-color); }
.custom-option.selected { background: var(--glass-glow); color: var(--primary-color); font-weight: 700; }

/* Products / Abadás Layout */
.product-grid { margin-bottom: 1.5rem; }
@media (max-width: 768px) {
  .app-header .logo-text { font-size: 2.5rem; }
  .app-header .logo-subtitle { font-size: 0.65rem; letter-spacing: 1.5px; margin-top: -0.2rem; }
  .app-header { position: relative; top: 0; margin-bottom: 2rem; }
  .logout-btn { top: 1rem; right: 1rem; width: 35px; height: 35px; }
}

.product-card {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.2rem;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}
.product-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.2); }
.product-img-wrapper {
  width: 100%; aspect-ratio: 1;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.1));
  border-radius: 12px; margin-bottom: 0.8rem;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
}
.product-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
/* Placeholder for abadá */
.abada-placeholder { font-size: 2.5rem; font-weight: 900; color: rgba(255,255,255,0.2); }

.product-info h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.qty-control {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(0,0,0,0.4); border-radius: 8px; padding: 0.2rem;
}
.qty-btn {
  background: none; border: none; color: var(--text-main); font-size: 1.2rem;
  width: 28px; height: 28px; cursor: pointer; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { background: rgba(255,255,255,0.1); }
.qty-val { font-weight: 600; font-size: 1rem; }

/* Summary & Multi-Actions */
.cart-summary {
  background: rgba(255,255,255,0.03);
  border: 1px dashed var(--glass-border);
  padding: 1rem; margin-bottom: 1.5rem; border-radius: 12px;
  text-align: center; font-size: 1.1rem;
}
.summary-value { font-weight: 700; color: var(--secondary-color); font-size: 1.2rem; margin-left: 0.5rem;}
.action-footer.double-action { display: grid; gap: 0.8rem; }

/* Payment View Styles */
.payment-summary {
  background: rgba(0,0,0,0.3); border-radius: 12px; padding: 1.2rem; margin-bottom: 1.5rem;
}
.payment-summary h3 { font-size: 1rem; color: var(--text-muted); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 1px; }
.order-list { list-style: none; }
.order-item { display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,0.05); padding: 0.8rem 0; }
.order-item:last-child { border-bottom: none; }
.item-qty { background: var(--primary-color); color: white; padding: 0.2rem 0.6rem; border-radius: 8px; font-size: 0.8rem; font-weight: bold; margin-left: 0.5rem; }

.method-options { display: flex; flex-direction: column; gap: 1rem; }
.payment-option input { display: none; }
.option-card {
  display: flex; align-items: center; gap: 1rem; padding: 1.2rem;
  border: 1px solid var(--glass-border); border-radius: 12px; cursor: pointer;
  transition: all 0.2s; background: rgba(0,0,0,0.2);
}
.option-card i { font-size: 2rem; }
.option-card span { font-weight: 600; font-size: 1.1rem; flex: 1; }
.option-card small { color: var(--text-muted); font-size: 0.85rem; }

.payment-option input:checked + .option-card {
  border-color: var(--secondary-color);
  background: rgba(var(--secondary-hue), 95%, 55%, 0.1);
  box-shadow: 0 0 15px rgba(var(--secondary-hue), 95%, 55%, 0.2);
}

/* Credit Card Form Elements */
.cc-form {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: fadeIn 0.3s;
}
.cc-number-group {
  position: relative;
}
.cc-number-group input {
  padding-left: 6rem !important; /* Make room for icon + logo on the left */
}
.cc-brand-logo {
  position: absolute;
  left: 3rem;
  top: 50%;
  transform: translateY(-50%);
  width: 35px;
  height: 25px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: opacity 0.3s ease;
  pointer-events: none;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--secondary-color);
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  opacity: 0;
}
.cc-brand-logo.brand-visa { color: #1a1f71; background: white; }
.cc-brand-logo.brand-mastercard { color: #eb001b; background: white; }
.cc-brand-logo.brand-amex { color: #2e77bb; background: white; }
.cc-brand-logo.brand-elo { color: #f97316; background: white; }
.cc-brand-logo.brand-hipercard { color: #bc1623; background: white; }
.cc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.native-select {
  width: 100%;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1rem;
  color: var(--text-main);
  font-size: 1rem;
  outline: none;
  cursor: pointer;
}
.native-select option {
  background: var(--bg-dark);
  color: white;
}

/* Receipt / Success View */
.receipt-card {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}
.receipt-header {
  text-align: center;
  margin-bottom: 2rem;
}
.success-icon { font-size: 5rem; color: var(--secondary-color); margin-bottom: 1rem; display: inline-block; }
.receipt-details {
  background: rgba(0,0,0,0.4);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
}
.receipt-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  align-items: center;
}
.receipt-divider {
  height: 1px;
  background: var(--glass-border);
  margin: 1.5rem 0;
}
.receipt-items-container h4 {
  margin-bottom: 1rem;
  color: var(--secondary-color);
}
.receipt-items {
  list-style: none;
  font-size: 0.95rem;
}
.receipt-items li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.total-row {
  font-size: 1.3rem;
  font-weight: 700;
}

.qr-wrapper {
  background: white; padding: 1rem; border-radius: 12px; display: inline-block; margin: 1.5rem 0;
}
.qr-wrapper img { width: 180px; height: 180px; }
.copy-box { display: flex; gap: 0.5rem; margin-top: 1rem; }
.copy-box input { flex: 1; background: rgba(0,0,0,0.5); border: 1px solid var(--glass-border); border-radius: 8px; padding: 0.8rem; color: var(--text-main); font-family: monospace; }



/* Print Media Query */
@media print {
  body {
    background: white !important;
    color: black !important;
    min-height: auto;
  }
  .app-header, .no-print, #logout-btn {
    display: none !important;
  }
  .glass-panel {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }
  .receipt-details {
    background: transparent !important;
    border: 1px solid #ddd !important;
    color: black !important;
  }
  .text-primary, .text-secondary {
    color: black !important;
  }
  .text-muted {
    color: #555 !important;
  }
  .qr-wrapper {
    border: 1px solid #ddd;
  }
}

/* Custom Toast System */
#toast-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 99999; /* Higher than Bootstrap */
  display: flex !important;
  flex-direction: column;
  gap: 1rem;
  pointer-events: none;
  align-items: center;
}

.toast {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-width: 320px;
  max-width: 90vw;
  padding: 1.25rem 2rem;
  border-radius: 16px;
  background: rgba(15, 10, 30, 0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 15px 50px rgba(0,0,0,0.6);
  color: var(--text-main) !important;
  display: flex;
  align-items: center;
  gap: 1rem;
  pointer-events: auto;
  animation: slideDownIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative;
  overflow: hidden;
}

.toast::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 6px;
}

.toast.success::before { background: #10b981; }
.toast.error::before { background: #ef4444; }
.toast.warning::before { background: #f59e0b; }
.toast.info::before { background: var(--primary-color); }

.toast i { font-size: 1.8rem; }
.toast.success i { color: #10b981; }
.toast.error i { color: #ef4444; }
.toast.warning i { color: #f59e0b; }
.toast.info i { color: var(--primary-color); }

.toast-content { flex: 1; font-weight: 600; font-size: 1.1rem; }

@keyframes slideDownIn {
  from { opacity: 0; transform: translateY(-40px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

.toast.fade-out { animation: fadeOutCenter 0.3s ease-in forwards; }

/* History Section */
.history-section h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.glass-table-wrapper {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow-x: auto;
}

.table-dark {
  --bs-table-bg: transparent;
  --bs-table-border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.history-section .table th {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: var(--text-muted);
  border-bottom: 2px solid var(--glass-border);
}

.history-section .table td {
  vertical-align: middle;
  font-size: 0.9rem;
}

/* Animations */
.fade-in { animation: fadeIn 0.4s ease forwards; }

/* Global Loading Overlay */
#global-loading-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--primary-color);
  font-size: 2rem;
  transition: opacity var(--transition-speed);
}
#global-loading-overlay span {
  font-size: 1rem;
  margin-top: 1rem;
  color: white;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* QR Code & Scanner Styles */
#modal-receipt-qrcode {
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

#qr-reader {
    border: none !important;
}

#qr-reader__dashboard {
    padding: 10px !important;
    background: rgba(255,255,255,0.05) !important;
    color: white !important;
}

#qr-reader__scan_region {
    background: #000 !important;
}

#qr-reader img {
    display: none; /* Hide the info icon from original library */
}

@media print {
    #modal-receipt-qrcode {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
@media (max-width: 768px) {
    .glass-panel {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }
    #admin-dashboard-view .container {
        padding-left: 5px;
        padding-right: 5px;
        width: 100% !important;
        max-width: 100% !important;
    }
    #admin-dashboard-view .glass-panel {
        width: 100% !important;
        border-radius: 0; /* Full width edge to edge looks better on small mobile */
        margin-bottom: 1rem;
    }
    .admin-dashboard-view .d-flex {
        flex-direction: column !important;
    }
    
    #admin-dashboard-view h2 { font-size: 1.5rem !important; }
    
    .table th, .table td {
        font-size: 0.8rem !important;
        padding: 8px 4px !important;
    }
}

/* LGPD Compliance Styles */
#privacyModal .modal-body {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) rgba(0,0,0,0.2);
}

#privacyModal .modal-body::-webkit-scrollbar {
    width: 6px;
}

#privacyModal .modal-body::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2);
}

#privacyModal .modal-body::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
}

.form-check-input {
    background-color: rgba(255,255,255,0.05) !important;
    border: 1px solid var(--glass-border) !important;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem var(--glass-glow) !important;
    border-color: var(--primary-color) !important;
}

.form-check-label {
    cursor: pointer;
    user-select: none;
}

#privacyModal .modal-content {
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

/* Light Theme Modal for Privacy/LGPD */
.modal-light .modal-content {
    background: #f8f9fa !important; /* Off-white */
    color: #212529 !important; /* Dark grey/black */
    border: none !important;
    box-shadow: 0 15px 50px rgba(0,0,0,0.3) !important;
}

.modal-light .modal-header {
    border-bottom: 1px solid rgba(0,0,0,0.1) !important;
}

.modal-light .modal-title {
    color: #1a1a1a !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
}

.modal-light .btn-close {
    filter: invert(1) !important; /* Makes the close button dark */
}

.modal-light .modal-body {
    color: #333 !important;
}

.modal-light .modal-body h6 {
    color: #000 !important;
    margin-top: 1.5rem;
}

.modal-light .text-white {
    color: #333 !important;
}

.modal-light .modal-body ul li {
    margin-bottom: 0.5rem;
}

.modal-light .modal-footer {
    border-top: 1px solid rgba(0,0,0,0.1) !important;
}

/* Botão de Histórico Sob Demanda */
#btn-show-user-history {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

#btn-show-user-history:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#btn-show-user-history:active {
    transform: translateY(0);
}

/* Input de Entrega Digital (Modal do Usuário) */
.receipt-delivery-input {
    width: 220px !important;
    background: rgba(0, 0, 0, 0.4) !important;
    border: 2px solid #a855f7 !important; /* Cor accent-purple vibrante */
    color: white !important;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border-radius: 12px !important;
    letter-spacing: 2px;
}

.receipt-delivery-input:focus {
    background: rgba(0, 0, 0, 0.6) !important;
    border-color: #d8b4fe !important; /* Mais claro no foco */
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.5) !important;
    transform: scale(1.05); /* Leve aumento para destaque */
}

.receipt-delivery-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
    font-weight: 300;
}
