/* ==================================================
   AGENDAFACIL - DESIGN SYSTEM
   Mobile-first Dark Theme
   ================================================== */

/* CSS RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  /* Colors */
  --bg-primary: #1e1b2e;
  --bg-secondary: #2a2640;
  --bg-card-gradient: linear-gradient(135deg, #2a2640 0%, #1e1b2e 100%);
  --surface-60: #292546;
  --surface-80: #35305b;
  --surface-90: #41386d;
  --surface-92: #463d76;

  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  --border-color: rgba(255, 255, 255, 0.05);
  --border-color-hover: rgba(255, 255, 255, 0.1);

  --accent-primary: #3b82f6;
  --accent-hover: #2563eb;
  --accent-active: #1d4ed8;

  --success: #10b981;
  --warning: #f59e0b;
  --info: #3b82f6;
  --error: #ef4444;

  /* Spacing */
  --spacing-xs: 0.25rem;   /* 4px */
  --spacing-sm: 0.5rem;    /* 8px */
  --spacing-md: 0.75rem;   /* 12px */
  --spacing-lg: 1rem;      /* 16px */
  --spacing-xl: 1.5rem;    /* 24px */
  --spacing-2xl: 2rem;     /* 32px */

  /* Border Radius */
  --radius-sm: 0.5rem;     /* 8px */
  --radius-md: 0.75rem;    /* 12px */
  --radius-lg: 1rem;       /* 16px */
  --radius-xl: 1.5rem;     /* 24px */
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.7);

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Transitions */
  --transition-base: all 0.2s ease;
  --transition-smooth: all 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  --transition-fast: all 0.15s ease;

  /* Z-index */
  --z-bottom-nav: 1000;
  --z-modal: 2000;
  --z-toast: 3000;
}

/* TEMA CLARO */
html.light,
html.light body {
  /* Colors - Light Theme */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card-gradient: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);

  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --border-color: rgba(0, 0, 0, 0.1);
  --border-color-hover: rgba(0, 0, 0, 0.15);

  --surface-60: #e2e8f0;
  --surface-80: #f1f5f9;
  --surface-90: #f8fafc;
  --surface-92: #fbfdff;

  /* Shadows - Lighter for light theme */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  padding-bottom: 80px; /* Space for bottom nav */
  overflow-x: hidden;
}

/* ==================================================
   TYPOGRAPHY
   ================================================== */

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: 2rem; }      /* 32px */
h2 { font-size: 1.5rem; }    /* 24px */
h3 { font-size: 1.25rem; }   /* 20px */
h4 { font-size: 1.125rem; }  /* 18px */
h5 { font-size: 1rem; }      /* 16px */
h6 { font-size: 0.875rem; }  /* 14px */

p {
  margin: 0;
  line-height: 1.5;
}

.text-xs { font-size: 0.75rem; }    /* 12px */
.text-sm { font-size: 0.875rem; }   /* 14px */
.text-base { font-size: 1rem; }     /* 16px */
.text-lg { font-size: 1.125rem; }   /* 18px */
.text-xl { font-size: 1.25rem; }    /* 20px */
.text-2xl { font-size: 1.5rem; }    /* 24px */

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent-primary); }

/* ==================================================
   BACKGROUND SURFACES
   ================================================== */

.bg-surface-60 {
  background: var(--surface-60);
}

.bg-surface-80 {
  background: var(--surface-80);
}

.bg-surface-90 {
  background: var(--surface-90);
}

.bg-surface-92 {
  background: var(--surface-92);
}

/* ==================================================
   LAYOUT & CONTAINERS
   ================================================== */

.container {
  width: 100%;
  max-width: 768px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.page-wrapper {
  min-height: calc(100vh - 80px);
  padding-bottom: var(--spacing-2xl);
}

.section {
  margin-bottom: var(--spacing-2xl);
}

/* ==================================================
   CARDS
   ================================================== */

.card {
  background: var(--bg-card-gradient);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  transition: var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-md);
}

.card-interactive {
  cursor: pointer;
  user-select: none;
}

.card-interactive:active {
  transform: scale(0.97);
}

.card-selected {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.card-header {
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
}

.card-body {
  /* Content spacing */
}

.card-footer {
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border-color);
}

/* ==================================================
   BUTTONS
   ================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: 0.75rem 1.5rem;
  min-height: 48px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-base);
  user-select: none;
  white-space: nowrap;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--accent-primary);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
}

.btn-primary:active:not(:disabled) {
  background: var(--accent-active);
  transform: scale(0.97);
}

.btn-secondary {
  background: #334155;
  border: 1px solid #475569;
  color: var(--text-primary);
}

.btn-secondary:hover:not(:disabled) {
  border-color: #64748b;
  background: #475569;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.btn-block {
  width: 100%;
  display: flex;
}

.btn-sm {
  padding: 0.5rem 1rem;
  min-height: 40px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2rem;
  min-height: 56px;
  font-size: 1.125rem;
}

/* ==================================================
   FORM CONTROLS
   ================================================== */

.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  min-height: 48px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-primary);
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  transition: var(--transition-base);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

html.light .form-control,
body.light .form-control {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #1e293b;
}

.form-control::placeholder {
  color: var(--text-muted);
}

html.light .form-control::placeholder,
body.light .form-control::placeholder {
  color: #94a3b8;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: #1e293b;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

html.light .form-control:focus,
body.light .form-control:focus {
  background: #ffffff;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-control:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-error {
  display: block;
  margin-top: var(--spacing-sm);
  font-size: 0.75rem;
  color: var(--error);
}

/* ==================================================
   BADGES
   ================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  white-space: nowrap;
  backdrop-filter: blur(10px);
}

.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-info {
  background: rgba(59, 130, 246, 0.15);
  color: var(--info);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

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

.badge-gray {
  background: rgba(156, 163, 175, 0.15);
  color: var(--text-secondary);
  border: 1px solid rgba(156, 163, 175, 0.3);
}

/* ==================================================
   BOTTOM NAVIGATION
   ================================================== */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-bottom-nav);
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: var(--spacing-sm) 0;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
}

.bottom-nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 768px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: var(--spacing-sm);
  min-width: 64px;
  text-decoration: none;
  color: var(--text-secondary);
  transition: var(--transition-base);
  cursor: pointer;
}

.bottom-nav-item:active {
  transform: scale(0.95);
}

.bottom-nav-item.active {
  color: var(--accent-primary);
}

/* Permitir sobrescrita por cores personalizadas do salão */
.bottom-nav-item.active[style*="color"] {
  /* CSS inline tem prioridade, então não precisa fazer nada aqui */
}

.bottom-nav-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottom-nav-icon svg {
  width: 100%;
  height: 100%;
}

.bottom-nav-label {
  font-size: 0.625rem;
  font-weight: 500;
  text-align: center;
}

/* ==================================================
   HEADER
   ================================================== */

.page-header {
  padding: var(--spacing-xl) 0;
  margin-bottom: var(--spacing-xl);
}

.salon-logo {
  max-width: 200px;
  max-height: 120px;
  width: auto;
  height: auto;
  border-radius: var(--radius-lg);
  object-fit: contain;
  margin: 0 auto var(--spacing-lg);
  display: block;
  border: 2px solid var(--border-color);
  background: rgba(255, 255, 255, 0.05);
  padding: var(--spacing-sm);
}

.salon-name {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
}

.salon-info {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* ==================================================
   SERVICE CARDS
   ================================================== */

.service-grid {
  display: grid;
  gap: var(--spacing-lg);
}

.service-card {
  background: var(--bg-card-gradient);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  transition: var(--transition-base);
  cursor: pointer;
}

.service-card:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.service-card:active {
  transform: scale(0.98);
}

.service-name {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.service-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
  line-height: 1.5;
}

.service-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-md);
}

.service-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.service-duration {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ==================================================
   PROFESSIONAL SELECTION
   ================================================== */

.professional-grid {
  display: grid;
  gap: var(--spacing-md);
}

.professional-grid form {
  display: contents;
}

.professional-card {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  background: var(--bg-card-gradient);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  transition: var(--transition-base);
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.professional-card:hover {
  border-color: var(--border-color-hover);
}

.professional-card.selected {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.professional-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--border-color);
}

.professional-info {
  flex: 1;
}

.professional-name {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.professional-badge {
  font-size: 0.875rem;
  color: #10b981;
  font-weight: 500;
}

/* ==================================================
   DATE & TIME SELECTION
   ================================================== */

.date-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.date-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
  min-height: 80px;
  background: var(--bg-card-gradient);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-base);
  text-align: center;
}

.date-card:hover {
  border-color: var(--border-color-hover);
}

.date-card.selected {
  border-color: var(--accent-primary);
  background: rgba(239, 68, 68, 0.1);
}

.date-weekday {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.date-day {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  line-height: 1;
}

.date-month {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: capitalize;
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: var(--spacing-sm);
}

.time-slot {
  padding: 1rem;
  min-height: 56px;
  background: var(--bg-card-gradient);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-base);
  text-align: center;
  font-weight: 700;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.time-slot:hover {
  border-color: var(--border-color-hover);
}

.time-slot.selected {
  border-color: var(--accent-primary);
  background: rgba(239, 68, 68, 0.1);
  color: var(--accent-primary);
}

.time-slot:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ==================================================
   BOOKING SUMMARY
   ================================================== */

.summary-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid var(--border-color);
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.summary-value {
  font-weight: 600;
  color: var(--text-primary);
}

/* ==================================================
   HISTORY/BOOKING LIST
   ================================================== */

.booking-list {
  display: grid;
  gap: var(--spacing-md);
}

.booking-card {
  background: var(--bg-card-gradient);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  transition: var(--transition-base);
}

.booking-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: var(--spacing-md);
}

.booking-service {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.booking-datetime {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

.booking-details {
  display: grid;
  gap: var(--spacing-sm);
}

.booking-detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}

.booking-detail-label {
  color: var(--text-muted);
}

.booking-detail-value {
  font-weight: 500;
  color: var(--text-primary);
}

/* ==================================================
   UTILITY CLASSES
   ================================================== */

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: var(--spacing-xs); }
.gap-2 { gap: var(--spacing-sm); }
.gap-3 { gap: var(--spacing-md); }
.gap-4 { gap: var(--spacing-lg); }

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-6 { margin-bottom: var(--spacing-xl); }

.p-2 { padding: var(--spacing-sm); }
.p-3 { padding: var(--spacing-md); }
.p-4 { padding: var(--spacing-lg); }

.w-full { width: 100%; }
.h-full { height: 100%; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.hidden { display: none; }

/* ==================================================
   ANIMATIONS
   ================================================== */

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-slideUp {
  animation: slideUp 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.animate-fadeIn {
  animation: fadeIn 0.2s ease;
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ==================================================
   RESPONSIVE
   ================================================== */

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }

  body {
    padding-bottom: 80px; /* Keep space for bottom nav on all screens */
  }


  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .date-grid {
    grid-template-columns: repeat(7, 1fr);
  }
}

/* ==================================================
   LOADING STATES
   ================================================== */

.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 25%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 75%
  );
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ==================================================
   SAFE AREA (iOS Notch/Home Indicator)
   ================================================== */

@supports (padding-bottom: env(safe-area-inset-bottom)) {
  body {
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }

  .bottom-nav {
    padding-bottom: calc(var(--spacing-sm) + env(safe-area-inset-bottom));
  }
}

/* ==================================================
   DARK MODE ONLY (Already dark by default)
   ================================================== */

@media (prefers-color-scheme: light) {
  /* Força dark mode mesmo se o usuário preferir light */
  body {
    background: var(--bg-primary);
    color: var(--text-primary);
  }
}

/* ==================================================
   ADMIN PANEL STYLES
   ================================================== */

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

/* Garantir que o header da página não seja sobreposto no mobile */
@media (max-width: 768px) {
  .admin-header {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
  }
}

.admin-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
}

.admin-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0;
}

.admin-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

html.light .admin-card,
body.light .admin-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

html.light .table-responsive,
body.light .table-responsive {
  border-color: #e2e8f0;
}

/* Melhorar responsividade da tabela no mobile */
@media (max-width: 768px) {
  .table-responsive {
    border-radius: var(--radius-md);
    border: 1px solid #334155;
  }

  .admin-table {
    min-width: 600px; /* Garantir largura mínima */
  }

  .admin-table th,
  .admin-table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
  }

  .admin-table th:last-child,
  .admin-table td:last-child {
    position: sticky;
    right: 0;
    background: #1e293b;
    border-left: 1px solid #334155;
    min-width: 120px;
  }

  .table-actions {
    position: sticky;
    right: 0;
    background: #1e293b;
    padding: 0.5rem;
    border-radius: 0.375rem;
    margin: -0.5rem;
  }

  html.light .table-responsive,
  body.light .table-responsive {
    border: 1px solid #e2e8f0;
  }

  html.light .admin-table th:last-child,
  body.light .admin-table th:last-child,
  html.light .admin-table td:last-child,
  body.light .admin-table td:last-child {
    background: #ffffff;
    border-left: 1px solid #e2e8f0;
  }

  html.light .table-actions,
  body.light .table-actions {
    background: #ffffff;
    border: 1px solid #e2e8f0;
  }
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table thead {
  border-bottom: 1px solid #334155;
}

html.light .admin-table thead,
body.light .admin-table thead {
  border-bottom: 1px solid #e2e8f0;
}

.admin-table th {
  padding: 1rem;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

html.light .admin-table th,
body.light .admin-table th {
  color: #475569;
}

.admin-table td {
  padding: 1rem;
  border-bottom: 1px solid #334155;
  color: var(--text-primary);
}

html.light .admin-table td,
body.light .admin-table td {
  border-bottom: 1px solid #e2e8f0;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

html.light .admin-table tbody tr:hover,
body.light .admin-table tbody tr:hover {
  background: rgba(15, 23, 42, 0.04);
}

.table-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.table-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #334155;
}

html.light .table-avatar,
body.light .table-avatar {
  border-color: #e2e8f0;
}

.table-avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
}

html.light .table-avatar-placeholder,
body.light .table-avatar-placeholder {
  background: #e2e8f0;
  color: #475569;
}

.table-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

html.light .table-actions,
body.light .table-actions {
  background: transparent;
}

.btn-icon {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.375rem;
  border-radius: 0.375rem;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
}

html.light .btn-icon,
body.light .btn-icon {
  color: #475569;
}

.btn-icon:hover {
  background: #334155;
  color: white;
}

html.light .btn-icon:hover,
body.light .btn-icon:hover {
  background: rgba(148, 163, 184, 0.2);
  color: #0f172a;
}

.btn-icon:active {
  transform: scale(0.95);
}

/* Estilos específicos para botões de ação */
.btn-icon-primary {
  color: #3b82f6;
}

.btn-icon-primary:hover {
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
}

.btn-icon-edit {
  color: #f59e0b;
}

.btn-icon-edit:hover {
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
}

.btn-icon-toggle {
  color: #10b981;
}

.btn-icon-toggle:hover {
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
}

.btn-icon-danger {
  color: #ef4444;
}

.btn-icon-danger:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
}

/* Melhorar visibilidade no mobile */
@media (max-width: 768px) {
  .btn-icon {
    padding: 0.5rem;
    min-width: 40px;
    min-height: 40px;
    background: rgba(51, 65, 85, 0.3);
    border: 1px solid #475569;
  }

  .btn-icon:hover {
    background: #475569;
    border-color: #64748b;
  }

  .btn-icon-primary:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
  }

  .btn-icon-edit:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
  }

  .btn-icon-toggle:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
  }

  .btn-icon-danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
  }

  html.light .btn-icon,
  body.light .btn-icon {
    background: rgba(226, 232, 240, 0.85);
    border: 1px solid #cbd5f5;
    color: #1e293b;
  }

  html.light .btn-icon:hover,
  body.light .btn-icon:hover {
    background: #e2e8f0;
    border-color: #cbd5f5;
    color: #0f172a;
  }

  .table-actions {
    gap: 0.75rem;
    flex-wrap: wrap;
  }
}

.text-right {
  text-align: right !important;
}

.text-center {
  text-align: center !important;
}

.text-muted {
  color: #64748b !important;
}

.font-medium {
  font-weight: 500 !important;
}

.alert {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-success {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-secondary {
  background: rgba(100, 116, 139, 0.1);
  color: #64748b;
  border: 1px solid rgba(100, 116, 139, 0.2);
}

.badge-info {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.2);
}


/* Form Rows and Actions */
.form-row {
  display: grid;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

@media (min-width: 768px) {
  .form-row.two-cols {
    grid-template-columns: 1fr 1fr;
  }
}

.form-hint {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #64748b;
}

.form-error {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #ef4444;
}

.form-actions {
  display: flex;
  gap: var(--spacing-md);
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #334155;
}

.btn-secondary {
  background: #334155;
  color: white;
  border: 1px solid #475569;
}

.btn-secondary:hover {
  background: #475569;
  border-color: #64748b;
}
/* ============================================
   ESTILOS PARA GERENCIAR HORÁRIOS
   ============================================ */

.horario-dia-section {
    padding: 1.5rem 0;
    border-bottom: 1px solid #475569;
}

.horario-dia-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.horario-dia-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.horario-dia-titulo {
    font-size: 0.95rem;
    font-weight: 600;
    color: #cbd5e1;
    margin: 0;
}

/* Toggle Switch para Horários - CORES INVERTIDAS */
.horario-toggle-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.horario-toggle-checkbox {
    display: none;
}

.horario-toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    background: #10b981; /* VERDE quando ATIVO */
    border-radius: 24px;
    transition: background 0.3s ease;
}

.horario-toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px; /* Bolinha começa à DIREITA */
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.horario-toggle-checkbox:checked + .horario-toggle-switch {
    background: #10b981; /* Mantém VERDE quando checked */
}

.horario-toggle-checkbox:checked + .horario-toggle-switch::after {
    transform: translateX(0); /* Bolinha fica no lugar */
}

/* Quando NÃO checked (desmarcado) */
.horario-toggle-checkbox:not(:checked) + .horario-toggle-switch {
    background: #475569; /* CINZA quando inativo */
}

.horario-toggle-checkbox:not(:checked) + .horario-toggle-switch::after {
    transform: translateX(-20px); /* Bolinha vai para ESQUERDA */
}

.horario-toggle-text {
    margin-left: 0.75rem;
    font-size: 0.875rem;
    color: #94a3b8;
    transition: color 0.3s ease;
}

.horario-toggle-checkbox:checked ~ .horario-toggle-text {
    color: #6ee7b7;
}

/* SELECT - Dropdown com fundo escuro e texto branco */
.horario-campos select.form-control {
    background-color: #0f172a; /* Fundo PRETO */
    color: white; /* Texto BRANCO */
    font-weight: 600;
}

.horario-campos select.form-control option {
    background-color: #0f172a; /* Opções com fundo PRETO */
    color: white; /* Texto BRANCO */
}

/* SELECT DROPDOWN - Estilos globais para área administrativa */
select.form-control {
    background-color: #0f172a !important;
    color: white !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23cbd5e1' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 16px 12px !important;
    padding-right: 2.5rem !important;
}

html.light select.form-control,
body.light select.form-control {
    background-color: #ffffff !important;
    color: #1e293b !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23475569' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
}

select.form-control option {
    background-color: #1e293b !important;
    color: white !important;
    padding: 0.5rem !important;
}

html.light select.form-control option,
body.light select.form-control option {
    background-color: #ffffff !important;
    color: #1e293b !important;
}

select.form-control option:hover,
select.form-control option:checked,
select.form-control option:focus {
    background-color: #3b82f6 !important;
    color: white !important;
}

html.light select.form-control option:hover,
html.light select.form-control option:checked,
html.light select.form-control option:focus,
body.light select.form-control option:hover,
body.light select.form-control option:checked,
body.light select.form-control option:focus {
    background-color: #3b82f6 !important;
    color: white !important;
}

/* Para navegadores que suportam */
select.form-control::-ms-expand {
    display: none;
}

/* Estilo quando o dropdown está aberto */
select.form-control:focus {
    background-color: #1e293b !important;
    border-color: #3b82f6 !important;
}

html.light select.form-control:focus,
body.light select.form-control:focus {
    background-color: #ffffff !important;
    border-color: #3b82f6 !important;
}

/* Animações */
.horario-campos {
    animation: horarioFadeIn 0.3s ease;
}

.horario-inativo-msg {
    animation: horarioFadeIn 0.3s ease;
    color: #64748b;
    font-style: italic;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.horario-inativo-msg p {
    margin: 0;
}

@keyframes horarioFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toggle-input:checked ~ .toggle-label {
    color: var(--success);
}

.horario-campos {
    margin-top: 1rem;
}

.horario-inativo {
    margin-top: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 0.75rem;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    /* Melhora contraste do telefone no mobile */
    .booking-detail-value {
        color: #e5e7eb; /* Cor mais clara para melhor legibilidade em telas pequenas */
        font-weight: 600; /* Negrito para facilitar leitura */
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--info);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-error {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--error);
}

.form-hint {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-style: italic;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 640px) {
    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.hover\:text-white:hover {
    color: var(--text-primary) !important;
}

.text-muted {
    color: var(--text-muted);
}

.italic {
    font-style: italic;
}

.inline-flex {
    display: inline-flex;
}

.items-center {
    align-items: center;
}

.gap-2 {
    gap: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.transition-colors {
    transition: color 0.2s ease;
}

.font-semibold {
    font-weight: 600;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.list-disc {
    list-style-type: disc;
}

.list-inside {
    list-style-position: inside;
}

.text-sm {
    font-size: 0.875rem;
}

.space-y-1 > * + * {
    margin-top: 0.25rem;
}

/* ============================================
   HEADER PADRÃO PARA PÁGINAS ADMIN
   ============================================ */

.page-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.5rem 0;
}

.page-subtitle {
    font-size: 1rem;
    color: #94a3b8;
    margin: 0;
}

/* ============================================
   SISTEMA DE TOAST/NOTIFICAÇÕES
   ============================================ */

/* Container do Toast - fixo no topo */
.toast-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-toast);
    display: flex;
    justify-content: center;
    padding: var(--spacing-lg);
    pointer-events: none;
}

/* Toast Alert */
.toast-alert {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    max-width: 500px;
    width: 100%;
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    transform: translateY(-100%);
    transition: all 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    pointer-events: auto;
    backdrop-filter: blur(10px);
}

/* Toast visível */
.toast-alert.show {
    opacity: 1;
    transform: translateY(0);
}

/* Toast Error (Indisponível) */
.toast-alert.error {
    background: rgba(239, 68, 68, 0.95);
    border: 1px solid rgba(220, 38, 38, 0.5);
    color: white;
}

/* Toast Warning (Aviso) */
.toast-alert.warning {
    background: rgba(245, 158, 11, 0.95);
    border: 1px solid rgba(217, 119, 6, 0.5);
    color: white;
}

/* Toast Success (Sucesso) */
.toast-alert.success {
    background: rgba(16, 185, 129, 0.95);
    border: 1px solid rgba(5, 150, 105, 0.5);
    color: white;
}

/* Toast Info (Informação) */
.toast-alert.info {
    background: rgba(59, 130, 246, 0.95);
    border: 1px solid rgba(37, 99, 235, 0.5);
    color: white;
}

/* Ícone do Toast */
.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

/* Conteúdo do Toast */
.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}

.toast-message {
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
    opacity: 0.95;
}

/* Botão de fechar Toast */
.toast-close-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.25rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
    flex-shrink: 0;
    opacity: 0.8;
}

.toast-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

.toast-close-btn svg {
    width: 16px;
    height: 16px;
}

/* Responsividade do Toast */
@media (max-width: 640px) {
    .toast-container {
        padding: var(--spacing-md);
    }

    .toast-alert {
        padding: var(--spacing-md);
        max-width: 100%;
    }

    .toast-title {
        font-size: 0.9375rem;
    }

    .toast-message {
        font-size: 0.8125rem;
    }
}




/* ==================================================
   SPIN ANIMATION (Loading)
   ================================================== */

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ==================================================
   UPLOAD COMPONENT STYLES
   ================================================== */

/* Upload Container */
.upload-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-secondary);
    transition: var(--transition-base);
    cursor: pointer;
}

.upload-container:hover {
    border-color: var(--accent-primary);
    background-color: rgba(239, 68, 68, 0.05);
}

/* Image Preview (circular) */
.image-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
    border: 2px solid var(--border-color);
}

.image-preview:hover {
    transform: scale(1.05);
    border-color: var(--accent-primary);
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-icon {
    fill: var(--text-muted);
    transition: var(--transition-base);
}

.image-preview:hover .upload-icon {
    fill: var(--accent-primary);
}

/* Current Image */
.current-image-container {
    margin-bottom: 1rem;
    text-align: center;
}

.current-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-primary);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

/* Upload Buttons */
.btn-upload {
    padding: 0.75rem 1.5rem;
    background-color: var(--accent-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-upload:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-upload:active {
    transform: translateY(0);
    background-color: var(--accent-active);
}

.btn-remove {
    padding: 0.5rem 1rem;
    background-color: var(--error);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-remove:hover {
    background-color: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* File Info */
.file-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    background-color: var(--bg-primary);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.file-info span {
    flex: 1;
    word-break: break-all;
}

/* Drag & Drop States */
.upload-container.drag-over {
    border-color: var(--accent-primary);
    background-color: rgba(239, 68, 68, 0.1);
    transform: scale(1.02);
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
    .upload-container {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .image-preview,
    .current-image {
        width: 120px;
        height: 120px;
    }
    
    .btn-upload {
        padding: 0.625rem 1.25rem;
        font-size: 0.9375rem;
    }
    
    .file-info {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* ==================================================
   PHONE NUMBER STYLING
   ================================================== */

/* Previne que números de telefone sejam tratados como links */
.phone-number,
[data-phone],
.telefone-display {
    color: var(--text-primary) !important;
    text-decoration: none !important;
    cursor: default !important;
    user-select: text !important;
}

/* Remove estilos de link do navegador para números */
.phone-number:hover,
[data-phone]:hover,
.telefone-display:hover {
    color: var(--text-primary) !important;
    text-decoration: none !important;
}

/* Melhora contraste em mobile */
@media (max-width: 768px) {
    .phone-number,
    [data-phone],
    .telefone-display {
        color: #ffffff !important;
        font-weight: 600 !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }
}

/* Regra mais específica para telefones - força cor branca */
.telefone-display,
.telefone-display:visited,
.telefone-display:link,
.telefone-display:active,
.telefone-display:hover {
    color: #ffffff !important;
    text-decoration: none !important;
    cursor: default !important;
    user-select: text !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    font-weight: 600 !important;
}

/* Força cor branca em mobile para telefones */
@media (max-width: 768px) {
    .telefone-display,
    .telefone-display:visited,
    .telefone-display:link,
    .telefone-display:active,
    .telefone-display:hover {
        color: #ffffff !important;
        text-decoration: none !important;
        cursor: default !important;
        user-select: text !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
        font-weight: 600 !important;
    }
}

/* ==================================================
   BOOKING CARDS - MELHORIAS VISUAIS
   ================================================== */

/* Tags de Status */
.booking-tag {
    position: absolute;
    top: -12px;
    left: 16px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    font-style: italic;
    border-radius: 12px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.tag-confirmed {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.tag-completed {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.tag-cancelled {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.tag-pending {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.tag-default {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.4);
}

/* Cards com bordas coloridas */
.booking-card {
    position: relative;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.booking-card-confirmed {
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.booking-card-completed {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.booking-card-cancelled {
    border-color: #ef4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1);
}

.booking-card-pending {
    border-color: #f59e0b;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.1);
}

/* Botão Cancelar Melhorado */
.booking-actions {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

.btn-cancel {
    background: transparent;
    color: var(--error);
    border: 2px solid var(--error);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.btn-cancel:hover {
    background: var(--error);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    transform: translateY(-2px);
}

.btn-cancel:active {
    transform: translateY(0);
}

.btn-cancel svg {
    width: 16px;
    height: 16px;
}

/* Checkmark Visual Melhorado */
.booking-checkmark {
    position: absolute;
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.booking-checkmark.completed {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.booking-checkmark.cancelled {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.booking-checkmark svg {
    width: 24px;
    height: 24px;
    color: #ffffff;
}

.booking-checkmark:hover {
    transform: scale(1.1) rotate(10deg);
}

/* Compactar Cards */
.booking-details {
    display: grid;
    gap: var(--spacing-sm);
}

.booking-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    padding: var(--spacing-xs) 0;
}

/* ==================================================
   AGENDAMENTO - MELHORIAS VISUAIS
   ================================================== */

/* Modal de Agendamento Melhorado */
.agendamento-modal {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.agendamento-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    padding: 1.5rem;
    border-radius: 16px 16px 0 0;
    position: relative;
    overflow: hidden;
}

.agendamento-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.agendamento-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 1;
}

.agendamento-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.agendamento-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Seleção de Data Melhorada */
.date-selection {
    padding: 1.5rem;
}

.date-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.date-button {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    border: 2px solid transparent;
    color: #ffffff;
    padding: 1rem 0.75rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.date-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.date-button:hover::before {
    left: 100%;
}

.date-button:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.date-button.selected {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-color: #3b82f6;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.date-button.unavailable {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

.date-button.unavailable:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

/* Seleção de Horário Melhorada */
.time-selection {
    padding: 1.5rem;
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.time-slot {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    border: 2px solid transparent;
    color: #ffffff;
    padding: 0.75rem 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
    position: relative;
    overflow: hidden;
}

.time-slot::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.time-slot:hover::before {
    left: 100%;
}

.time-slot:hover {
    border-color: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

.time-slot.selected {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

.time-slot.unavailable {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

.time-slot.unavailable:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

/* Formulário de Cliente Melhorado */
.client-form {
    padding: 1.5rem;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-radius: 0 0 16px 16px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    color: #e5e7eb;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-control {
    width: 100%;
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    border: 2px solid transparent;
    color: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
}

.form-control::placeholder {
    color: #9ca3af;
}

/* Resumo do Agendamento */
.summary-card {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.summary-title {
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-title::before {
    content: '📋';
    font-size: 1.25rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    color: #9ca3af;
    font-weight: 500;
    font-size: 0.875rem;
}

.summary-value {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Botão de Agendamento Melhorado */
.btn-agendar {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
}

.btn-agendar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-agendar:hover::before {
    left: 100%;
}

.btn-agendar:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.4);
}

.btn-agendar:active {
    transform: translateY(0);
}

.btn-agendar:disabled {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Mensagens de Status Melhoradas */
.status-message {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-message.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-message.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-message.error {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

/* Animações */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-slideUp {
    animation: slideUp 0.3s ease-out;
}

.animate-fadeIn {
    animation: fadeIn 0.3s ease-out;
}

/* Responsividade */
@media (max-width: 768px) {
    .date-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.5rem;
    }
    
    .time-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 0.5rem;
    }
    
    .date-button,
    .time-slot {
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
    }
    
    .agendamento-header {
        padding: 1rem;
    }
    
    .agendamento-title {
        font-size: 1.25rem;
    }
}

.card-surface {
  background: var(--surface-90);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.badge-neutral {
  background: rgba(148, 163, 184, 0.15);
  color: rgba(226, 232, 240, 0.85);
}

/* ==================================================
   UI/UX IMPROVEMENTS - PROFESSIONAL ENHANCEMENTS
   ================================================== */

/* ==================================================
   ACCESSIBILITY IMPROVEMENTS
   ================================================== */

/* Focus states for keyboard navigation */
*:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Skip to content link for screen readers */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent-primary);
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  z-index: 10000;
  border-radius: 0 0 var(--radius-md) 0;
}

.skip-to-content:focus {
  top: 0;
}

/* Screen reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ==================================================
   TOUCH TARGETS (Mobile First)
   ================================================== */

/* Ensure minimum touch target size (44x44px) */
@media (max-width: 768px) {
  .btn,
  .btn-sm,
  .btn-lg,
  .date-card,
  .time-slot,
  .service-card,
  .professional-card,
  .sidebar-link,
  .bottom-nav-item,
  .mobile-menu-btn {
    min-height: 44px;
    min-width: 44px;
  }

  /* Increase padding for better touch targets */
  .btn {
    padding: 0.875rem 1.5rem;
  }

  .btn-sm {
    padding: 0.625rem 1rem;
    min-height: 40px;
  }

  .form-control {
    min-height: 48px;
    padding: 0.875rem 1rem;
  }
}

/* ==================================================
   LOADING STATES ENHANCEMENTS
   ================================================== */

.skeleton-card {
  position: relative;
  overflow: hidden;
}

.skeleton-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.loading-spinner {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

.loading-overlay-content {
  background: var(--bg-secondary);
  padding: var(--spacing-2xl);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-xl);
}

/* ==================================================
   RESPONSIVE BREAKPOINTS ENHANCEMENTS
   ================================================== */

/* Tablet (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .container {
    max-width: 720px;
    padding: 0 var(--spacing-xl);
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
  }

  .date-grid {
    grid-template-columns: repeat(7, 1fr);
    gap: var(--spacing-md);
  }

  .time-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .professional-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .container {
    max-width: 1200px;
    padding: 0 var(--spacing-2xl);
  }

  .service-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
  }

  .date-grid {
    grid-template-columns: repeat(7, 1fr);
    max-width: 800px;
    margin: 0 auto;
  }

  .time-grid {
    grid-template-columns: repeat(5, 1fr);
    max-width: 600px;
    margin: 0 auto;
  }

  .professional-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 900px;
    margin: 0 auto;
  }
}

/* ==================================================
   INTERACTION IMPROVEMENTS
   ================================================== */

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Better hover states for desktop */
@media (hover: hover) and (pointer: fine) {
  .service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
  }

  .professional-card:hover {
    transform: translateX(4px);
  }

  .date-card:hover,
  .time-slot:hover {
    transform: scale(1.05);
  }
}

/* Disable hover effects on touch devices */
@media (hover: none) and (pointer: coarse) {
  .service-card:hover,
  .professional-card:hover,
  .date-card:hover,
  .time-slot:hover {
    transform: none;
  }
}

/* ==================================================
   FORM IMPROVEMENTS
   ================================================== */

.form-control:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-control.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-control:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: var(--surface-60);
}

/* ==================================================
   EMPTY STATES IMPROVEMENTS
   ================================================== */

.empty-state {
  text-align: center;
  padding: var(--spacing-2xl);
}

.empty-state-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-lg);
  border-radius: var(--radius-full);
  background: rgba(148, 163, 184, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.empty-state h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
}

/* ==================================================
   CARD IMPROVEMENTS
   ================================================== */

.card {
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-primary);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card:hover::before {
  opacity: 1;
}

/* ==================================================
   BADGE IMPROVEMENTS
   ================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
}

/* ==================================================
   UTILITY CLASSES
   ================================================== */

/* Spacing utilities */
.mt-auto { margin-top: auto; }
.mb-auto { margin-bottom: auto; }

/* Flex utilities */
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.flex-col { flex-direction: column; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-center { align-items: center; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--spacing-xs); }
.gap-2 { gap: var(--spacing-sm); }
.gap-3 { gap: var(--spacing-md); }
.gap-4 { gap: var(--spacing-lg); }

/* Text utilities */
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==================================================
   MODAL STYLES
   ================================================== */

/* Modal container - oculto por padrão */
.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* Modal aberto */
.modal.open {
  display: flex;
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

/* Overlay do modal - relativo ao container .modal */
.modal .modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.modal.open .modal-overlay {
  opacity: 1;
}

/* Fallback para modal-overlay standalone (usado em páginas antigas) */
.modal-overlay:not(.modal .modal-overlay) {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none; /* Oculto por padrão */
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  padding: var(--spacing-lg);
  backdrop-filter: blur(4px);
}

.modal-overlay:not(.modal .modal-overlay).open {
  display: flex;
}

/* Conteúdo do modal */
.modal .modal-content {
  position: relative;
  z-index: 1;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  box-shadow: var(--shadow-xl);
  max-width: 90%;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

/* Fallback para modal-content standalone */
.modal-content:not(.modal .modal-content) {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  box-shadow: var(--shadow-xl);
  max-width: 90%;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

html.light .modal-content,
body.light .modal-content {
  background: var(--bg-primary);
  border-color: var(--border-color);
}

@media (max-width: 768px) {
  .modal-content {
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
  }
}

/* ==================================================
   MODAL DUPLICADO - MOBILE OPTIMIZED
   ================================================== */

.modal-duplicado {
  padding: var(--spacing-md) !important;
  align-items: flex-end !important;
}

.modal-duplicado-content {
  max-width: 100% !important;
  width: 100% !important;
  max-height: 90vh !important;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0 !important;
  margin: 0 !important;
  padding: var(--spacing-xl) var(--spacing-lg) !important;
  overflow-y: auto !important;
  animation: slideUpMobile 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.modal-duplicado-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.modal-duplicado-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--spacing-md);
  background: rgba(245, 158, 11, 0.15);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-duplicado-title {
  font-size: clamp(1.125rem, 4vw, 1.25rem);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
  line-height: 1.3;
}

.modal-duplicado-subtitle {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
  font-weight: 500;
  font-size: clamp(0.875rem, 3.5vw, 0.9375rem);
  line-height: 1.5;
}

.modal-duplicado-list {
  margin-bottom: var(--spacing-lg);
  max-height: 180px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 4px;
}

.modal-duplicado-item {
  background: var(--surface-60);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-sm);
  border-left: 3px solid var(--accent-primary);
}

.modal-duplicado-item-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  font-size: clamp(0.875rem, 3.5vw, 0.9375rem);
}

.modal-duplicado-item-details {
  font-size: clamp(0.75rem, 3vw, 0.875rem);
  color: var(--text-secondary);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.modal-duplicado-separator {
  margin: 0 var(--spacing-xs);
  opacity: 0.6;
}

.modal-duplicado-warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--warning);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.modal-duplicado-warning-title {
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
  text-align: center;
  font-size: clamp(0.875rem, 3.5vw, 0.9375rem);
}

.modal-duplicado-warning-text {
  color: var(--text-secondary);
  text-align: center;
  font-size: clamp(0.8125rem, 3vw, 0.875rem);
  line-height: 1.6;
}

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

.modal-duplicado-actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  width: 100%;
}

.modal-duplicado-btn-cancel,
.modal-duplicado-btn-confirm {
  width: 100%;
  min-height: 48px;
  font-size: clamp(0.875rem, 3.5vw, 0.9375rem);
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-md);
  font-weight: 600;
  white-space: normal;
  word-wrap: break-word;
  line-height: 1.4;
}

.modal-duplicado-btn-confirm {
  order: -1; /* Botão de confirmação aparece primeiro em mobile */
}

/* Desktop: botões lado a lado */
@media (min-width: 769px) {
  .modal-duplicado {
    align-items: center !important;
    padding: var(--spacing-lg) !important;
  }

  .modal-duplicado-content {
    max-width: 500px !important;
    width: 90% !important;
    border-radius: var(--radius-xl) !important;
    padding: var(--spacing-2xl) !important;
  }

  .modal-duplicado-icon {
    width: 64px;
    height: 64px;
  }

  .modal-duplicado-title {
    font-size: 1.25rem;
  }

  .modal-duplicado-subtitle {
    font-size: 0.9375rem;
  }

  .modal-duplicado-list {
    max-height: 200px;
  }

  .modal-duplicado-actions {
    flex-direction: row;
  }

  .modal-duplicado-btn-confirm {
    order: 0; /* Ordem normal em desktop */
  }
}

/* Animação de slide up para mobile */
@keyframes slideUpMobile {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Desktop: animação de fade in */
@media (min-width: 769px) {
  .modal-duplicado-content {
    animation: slideUp 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  }
}

/* ==================================================
   PÁGINA DE PERSONALIZAÇÃO
   ================================================== */

.personalizacao-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-xl);
}

.personalizacao-main {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2xl);
}

.personalizacao-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  box-shadow: var(--shadow-md);
}

.section-header {
  margin-bottom: var(--spacing-xl);
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: center;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Logo Section - Upload Area */
.upload-area {
  position: relative;
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--spacing-2xl);
  text-align: center;
  background: var(--surface-60);
  transition: all 0.3s ease;
  cursor: pointer;
}

.upload-area:hover {
  border-color: var(--accent-primary);
  background: var(--surface-80);
}

.upload-area.drag-over {
  border-color: var(--accent-primary);
  background: var(--accent-primary);
  background: rgba(59, 130, 246, 0.1);
  transform: scale(1.02);
}

.upload-area.has-file {
  border-color: var(--success);
  background: rgba(16, 185, 129, 0.05);
}

.file-input {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.upload-area:hover .upload-label {
  color: var(--text-primary);
}

.upload-text {
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  color: var(--text-primary);
}

.upload-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.input-with-button {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
}

.input-with-button .form-control {
  flex: 1;
}

.logo-preview-container {
  margin-top: var(--spacing-xl);
}

.logo-preview {
  background: var(--surface-60);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--spacing-xl);
  text-align: center;
}

.logo-preview-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
  font-weight: 600;
}

.logo-preview-box {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-preview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  color: var(--text-muted);
}

.logo-preview-placeholder svg {
  opacity: 0.5;
}

/* Color Pickers */
.color-pickers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.color-picker-item {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.color-label-text {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.color-label-hint {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.color-input-wrapper {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
}

.color-picker {
  width: 60px;
  height: 44px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  background: none;
  padding: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.color-picker::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-picker::-webkit-color-swatch {
  border: none;
  border-radius: var(--radius-sm);
}

.color-text-input {
  flex: 1;
  padding: var(--spacing-md);
  background: var(--surface-60);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'Courier New', monospace;
  font-size: 0.9375rem;
  text-transform: uppercase;
}

.color-text-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Paletas Pré-definidas */
.paletas-section {
  margin-top: var(--spacing-2xl);
  padding-top: var(--spacing-2xl);
  border-top: 1px solid var(--border-color);
}

.paletas-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.paletas-hint {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
}

.paletas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--spacing-md);
}

.paleta-item {
  background: var(--surface-60);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  align-items: center;
}

.paleta-item:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.paleta-colors {
  display: flex;
  gap: 2px;
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 40px;
}

.paleta-color {
  flex: 1;
  height: 100%;
}

.paleta-name {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Preview */
.preview-container {
  background: var(--surface-60);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  overflow: hidden;
}

.preview-box {
  background: linear-gradient(180deg, #0d1b2a 0%, #1a2332 100%);
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 300px;
  transition: all 0.3s ease;
}

.preview-header {
  padding: var(--spacing-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.preview-logo img {
  max-width: 100px;
  max-height: 40px;
  object-fit: contain;
}

.preview-logo span {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.preview-content {
  padding: var(--spacing-xl);
}

.preview-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--spacing-lg);
  color: var(--text-primary);
}

.preview-service-card {
  background: var(--surface-80);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.preview-service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  flex-shrink: 0;
}

.preview-service-info {
  flex: 1;
}

.preview-service-info h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.preview-service-info p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.preview-btn {
  padding: var(--spacing-md) var(--spacing-lg);
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.preview-btn:hover {
  transform: scale(1.05);
}

/* Botões de Ação */
.personalizacao-actions {
  display: flex;
  gap: var(--spacing-md);
  justify-content: flex-end;
  flex-wrap: wrap;
  padding-top: var(--spacing-xl);
  border-top: 1px solid var(--border-color);
}

/* Responsividade Mobile */
@media (max-width: 768px) {
  .personalizacao-container {
    padding: var(--spacing-lg);
  }

  .personalizacao-section {
    padding: var(--spacing-xl);
  }

  .color-pickers-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .input-with-button {
    flex-direction: column;
  }

  .input-with-button .btn {
    width: 100%;
  }

  .paletas-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .personalizacao-actions {
    flex-direction: column;
  }

  .personalizacao-actions .btn,
  .personalizacao-actions a {
    width: 100%;
    justify-content: center;
  }

  .preview-box {
    min-height: 250px;
  }

  .preview-service-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .preview-btn {
    width: 100%;
  }
}

/* ==================================================
   PRINT STYLES
   ================================================== */

@media print {
  .bottom-nav,
  .mobile-header,
  .sidebar,
  .btn,
  .no-print,
  .modal-overlay {
    display: none !important;
  }

  .main-content {
    margin-left: 0 !important;
    padding: 0 !important;
  }

  body {
    background: white !important;
    color: black !important;
  }
}
