@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark; /* Previne a inversão de cores e bugs no modo escuro mobile */
  --bg-dark: #080d16;
  --card-bg: rgba(15, 23, 42, 0.85); /* Opacidade para contraste */
  --card-border: rgba(255, 255, 255, 0.08);
  --primary: #00d2ff;
  --primary-glow: rgba(0, 210, 255, 0.35);
  --secondary: #3a7bd5;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.35);
  --danger: #ef4444;
  --whatsapp: #25d366;
}

* { box-sizing: border-box; }

html {
  background-color: var(--bg-dark);
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%; /* Desativa redimensionamento automático de texto no iOS */
}

/* Custom Scrollbar Escura (Corrige a barra cinzenta original) */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(10, 16, 28, 0.6);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Esferas de Luz de Fundo (Efeito Glow Moderno) */
body::before, body::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
}
body::before {
  width: 350px; height: 350px;
  background: rgba(0, 210, 255, 0.15);
  top: -50px; left: -50px;
}
body::after {
  width: 400px; height: 400px;
  background: rgba(58, 123, 213, 0.12);
  bottom: -100px; right: -50px;
}

.container {
  max-width: 850px;
  margin: 0 auto;
  padding: 30px 20px;
}

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--card-border);
}

.brand-logo {
  height: 65px;
  width: auto;
  filter: drop-shadow(0 0 12px rgba(0, 210, 255, 0.2));
}

/* Cartões com Vidro Fosco (Glassmorphism) */
.info-box {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.info-box:hover {
  border-color: rgba(0, 210, 255, 0.18);
}

.info-box h3, .info-box h4 {
  margin-top: 0;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.3px;
}

/* --- ESTILOS DOS PASSOS / CHECKLIST --- */
.steps-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.step-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

/* Estado Pendente */
.step-card.step-pending {
  opacity: 0.65;
}

.step-card.step-pending .step-number {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

/* Estado Concluído com Brilho Neon */
.step-card.step-done {
  opacity: 1;
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 15px var(--success-glow);
}

.step-card.step-done .step-number {
  background: var(--success);
  color: #fff;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.step-card.step-done .step-title {
  color: #fff;
  font-weight: 600;
}

/* Badges de Estado */
.badge-status {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 5px 12px;
  border-radius: 20px;
  text-transform: uppercase;
}

.badge-pending {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.badge-done {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

/* Barra de Progresso */
.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--card-border);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--success));
  border-radius: 10px;
  transition: width 0.4s ease;
}

/* Botões Modernos com Glow */
button, .btn {
  background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px var(--primary-glow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 210, 255, 0.5);
}

/* Inputs / Selects Estilizados */
input, select, textarea {
  background: rgba(10, 16, 28, 0.9);
  color: var(--text-main);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.95rem;
  width: 100%;
  margin-bottom: 12px;
  transition: all 0.2s;
  font-family: inherit;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Grids */
.grid-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

/* Chat de Mensagens */
.message-bubble {
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 16px;
  border-radius: 14px;
  border-left: 4px solid var(--primary);
}

.message-meta { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }
.message-text { font-size: 0.9rem; margin-top: 4px; color: #e2e8f0; }

/* Modal Pop-up */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(4, 7, 13, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; justify-content: center; align-items: center;
  z-index: 1000;
}
.modal-card {
  background: #0f172a;
  border-radius: 24px;
  padding: 32px;
  max-width: 420px;
  width: 90%;
  border: 1px solid var(--card-border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  text-align: center;
}
.link-whatsapp {
  background: #25d366 !important;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3) !important;
  color: #fff;
  text-decoration: none;
  padding: 14px 20px;
  border-radius: 12px;
  font-weight: 700;
  display: block;
  margin-top: 20px;
}
.btn-close-modal {
  background: transparent;
  border: none;
  box-shadow: none;
  color: var(--text-muted);
  margin-top: 12px;
}

/* REGRAS ESPECÍFICAS PARA TELEMÓVEL (MOBILE FIX) */
@media (max-width: 768px) {
  .container {
    padding: 15px 12px;
  }

  .grid-details { 
    grid-template-columns: 1fr; 
  }

  .info-box {
    background: #0f172a; /* Fundo sólido nos dispositivos sem suporte a backdrop-filter */
    padding: 18px;
  }

  body::before, body::after {
    display: none; /* Desativa esferas pesadas para performance mobile/Safari */
  }
} 
