/* Estilo & Arte - Tema escuro com detalhes dourados */

* { box-sizing: border-box; }

body {
  font-family: 'Poppins', sans-serif;
  background-color: #121214;
}

/* Scrollbar customizada */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #1e1e22; }
::-webkit-scrollbar-thumb { background: #33333a; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #b58941; }

/* Cards com efeito de vidro suave */
.glass-card {
  background: #1e1e22;
  border: 1px solid #26262b;
  border-radius: 16px;
}

/* Gradiente dourado para elementos de destaque */
.gold-gradient {
  background: linear-gradient(135deg, #d4a24c 0%, #b58941 50%, #8f6b2f 100%);
}

.gold-text-gradient {
  background: linear-gradient(135deg, #d4a24c 0%, #b58941 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Botões */
.btn-gold {
  background: linear-gradient(135deg, #d4a24c 0%, #b58941 100%);
  color: #121214;
  font-weight: 600;
  border-radius: 12px;
  padding: 12px 20px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}
.btn-gold:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-gold:active { transform: translateY(0); }
.btn-gold:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-ghost-gold {
  background: transparent;
  color: #d4a24c;
  border: 1px solid #b58941;
  font-weight: 500;
  border-radius: 12px;
  padding: 12px 20px;
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn-ghost-gold:hover { background: rgba(181, 137, 65, 0.1); }

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-danger:hover { background: rgba(239, 68, 68, 0.25); }

/* Inputs */
.input-dark {
  background: #26262b;
  border: 1px solid #33333a;
  color: white;
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.2s ease;
  outline: none;
}
.input-dark:focus { border-color: #b58941; }
.input-dark::placeholder { color: #6b6b70; }

/* Abas / pills de categoria */
.tab-pill {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: #9a9aa0;
  background: #26262b;
  border: 1px solid #33333a;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.tab-pill.active {
  background: linear-gradient(135deg, #d4a24c 0%, #b58941 100%);
  color: #121214;
  border-color: transparent;
  font-weight: 600;
}

/* Navegação inferior */
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #6b6b70;
  font-size: 11px;
  transition: color 0.2s ease;
  cursor: pointer;
}
.bottom-nav-item.active { color: #d4a24c; }
.bottom-nav-item i { font-size: 18px; }

/* Badges de status */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}
.status-badge.confirmado { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.status-badge.pendente { background: rgba(234, 179, 8, 0.15); color: #eab308; }
.status-badge.em_andamento { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.status-badge.cancelado { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.status-badge.concluido { background: rgba(181, 137, 65, 0.15); color: #d4a24c; }
.status-badge.nao_compareceu { background: rgba(156, 163, 175, 0.15); color: #9ca3af; }

.dot-confirmado { background: #22c55e; }
.dot-pendente { background: #eab308; }
.dot-em_andamento { background: #3b82f6; }
.dot-cancelado { background: #ef4444; }
.dot-concluido { background: #b58941; }
.dot-nao_compareceu { background: #9ca3af; }

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, #1e1e22 25%, #26262b 50%, #1e1e22 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Toast */
.toast {
  animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
}
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* Calendário */
.calendar-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 68px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #1e1e22;
  border: 1px solid transparent;
}
.calendar-day:hover { border-color: #33333a; }
.calendar-day.selected {
  background: linear-gradient(135deg, #d4a24c 0%, #b58941 100%);
  color: #121214;
}
.calendar-day.today:not(.selected) { border-color: #b58941; }

/* Ícones de input date/time em fundo escuro */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.6;
  cursor: pointer;
}

/* Layout desktop */
@media (min-width: 1024px) {
  .app-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
  }
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}
@media (min-width: 640px) {
  .modal-overlay { align-items: center; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-content {
  background: #1e1e22;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.25s ease;
}
@media (min-width: 640px) {
  .modal-content { border-radius: 20px; }
}
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

h1, h2, h3, .font-display { font-family: 'Playfair Display', serif; }
