/* ==========================================================
   🌄 WELCOME SCREEN — ESTILO MODERNO (2025)
========================================================== */

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Nunito', sans-serif;
    height: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color 0.6s ease;
}

/* ==========================================================
   🎬 FUNDO CINEMATOGRÁFICO
========================================================== */
body {
    background: url('/logos/fundo-light.jpg') center/cover no-repeat fixed;
    color: #111827;
}
body.dark {
    background: url('/logos/fundo-dark.jpg') center/cover no-repeat fixed;
    color: #f3f4f6;
}

/* ==========================================================
   🌗 BOTÃO DE TEMA
========================================================== */
.btn-theme {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 40;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-theme:hover { transform: scale(1.1); background: rgba(255,255,255,0.95); }
.btn-theme .dark { display: none; }
body.dark .btn-theme .light { display: none; }
body.dark .btn-theme .dark { display: inline; }

/* 🔘 Ajuste visual do botão de tema */
body.dark .btn-theme {
    background: rgba(31, 41, 55, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f3f4f6;
}
body.dark .btn-theme:hover {
    background: rgba(55, 65, 81, 0.9);
    transform: scale(1.1);
}

/* ==========================================================
   👋 SAUDAÇÃO, DATA E CLIMA
========================================================== */
.welcome-header {
    text-align: center;
    margin-top: 4rem;
    color: #fff;
    position: relative;
    z-index: 10;
}

.welcome-greeting {
    font-size: clamp(2.4rem, 4vw, 3rem);
    font-weight: 800;
    color: #ef4444;
    text-shadow: 0 0 10px rgba(255,255,255,0.6), 0 0 20px rgba(255, 0, 0, 0.4);
    animation: fadeInUp 1s ease-out both;
}

.welcome-date {
    font-size: 1.15rem;
    color: #e5e7eb;
    margin-top: 0.5rem;
}

/* 🔵 Welcome: exibir o ponto (•) entre data e hora */
.welcome-date-text + .welcome-time::before {
    content: " • ";
    margin: 0 4px;
    opacity: 0.85;
    font-weight: 500;
}

.welcome-weather {
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 0 8px rgba(0,0,0,0.6);
    margin-top: 0.4rem;
}

/* ==========================================================
   💡 CARD CENTRAL TRANSLÚCIDO
========================================================== */
.welcome-main {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 70vh;
    position: relative;
    z-index: 10;
}

.welcome-card {
    max-width: 800px;
    text-align: center;
    padding: 3.5rem 3rem;
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 25px rgba(255,255,255,0.25), 0 4px 40px rgba(0,0,0,0.25);
    animation: fadeInUp 1.2s ease-out both, pulseGlow 10s infinite ease-in-out;
    transition: all 0.4s ease;
}
body.dark .welcome-card {
    background: rgba(31, 41, 55, 0.75);
    color: #f3f4f6;
    box-shadow: 0 0 25px rgba(255,255,255,0.1), 0 4px 40px rgba(0,0,0,0.5);
}

.welcome-card h1 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
}
.welcome-card p {
    font-size: 1.05rem;
    margin-bottom: 1.8rem;
}
.highlight { color: #ef4444; }

/* ==========================================================
   🔘 BOTÕES
========================================================== */
.welcome-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: #ef4444;
    color: #fff;
    padding: 0.9rem 2rem;
    border-radius: 0.7rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 3px 8px rgba(239,68,68,0.4);
}
.btn-primary:hover {
    background: #dc2626;
    transform: scale(1.05);
}

.btn-secondary {
    background: rgba(255,255,255,0.8);
    color: #111;
    padding: 0.9rem 2rem;
    border-radius: 0.7rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.95);
    transform: scale(1.05);
}

/* ==========================================================
   💬 WHATSAPP
========================================================== */
.floating-whatsapp {
  position: fixed;
  bottom: 6.8rem;
  right: 1.6rem;
  z-index: 50;
  background-color: #25D366;
  color: #fff;
  border-radius: 50%;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  animation: pulseGlow 2.8s infinite ease-in-out, fadeInUp 1s ease-out both;
}
.floating-whatsapp:hover {
  transform: scale(1.1);
  background-color: #20b85a;
}
#whatsapp-tooltip {
  position: fixed;
  bottom: 9.4rem;
  right: 5.3rem;
  background: rgba(37,211,102,0.95);
  color: #fff;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 14px;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateX(20px);
  animation: tooltipIn 1s ease forwards, tooltipOut 1s ease 6s forwards;
  z-index: 50;
}

/* ==========================================================
   ✨ ANIMAÇÕES
========================================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulseGlow {
    0%,100% { box-shadow: 0 0 10px rgba(239,68,68,.5), 0 0 20px rgba(239,68,68,.2); }
    50% { box-shadow: 0 0 15px rgba(239,68,68,.7), 0 0 25px rgba(239,68,68,.3); }
}
@keyframes tooltipIn { to { opacity: 1; transform: translateX(0); } }
@keyframes tooltipOut { to { opacity: 0; transform: translateX(20px); } }

/* ==========================================================
   📱 RESPONSIVIDADE
========================================================== */
@media (max-width: 640px) {
    .welcome-greeting { font-size: 1.9rem; }
    .welcome-card { padding: 2.2rem 1.4rem; background: rgba(255,255,255,0.9); }
    body.dark .welcome-card { background: rgba(17,24,39,0.9); }
    .welcome-card h1 { font-size: 2rem; }
    .whatsapp-tooltip { right: 4.5rem; bottom: 7.5rem; font-size: 13px; }
}

/* ================================
   🌈 Barra de rolagem moderna
================================ */

/* Scrollbar geral */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

/* Fundo da scrollbar */
::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
}

/* Thumb (parte que se move) */
::-webkit-scrollbar-thumb {
    background: rgba(120, 120, 120, 0.35);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: background 0.3s ease;
}

/* Hover suave */
::-webkit-scrollbar-thumb:hover {
    background: rgba(120, 120, 120, 0.55);
}

/* ================================
   🌙 DARK MODE
================================ */
html.dark ::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.04);
}

html.dark ::-webkit-scrollbar-thumb {
    background: rgba(200, 200, 200, 0.25);
    border-color: transparent;
}

html.dark ::-webkit-scrollbar-thumb:hover {
    background: rgba(200, 200, 200, 0.45);
}

.input-label {
    @apply block text-sm font-semibold mb-1 text-gray-700 dark:text-gray-300;
}
.input-field {
    @apply w-full px-4 py-2.5 rounded-xl border border-gray-300 dark:border-gray-700
           bg-white/80 dark:bg-gray-800/80 text-gray-900 dark:text-gray-100
           focus:ring-2 focus:ring-indigo-600 transition;
}
.checkbox-line {
    @apply flex items-start gap-2 text-sm text-gray-700 dark:text-gray-300;
}
.link {
    @apply text-indigo-600 dark:text-indigo-400 underline font-semibold;
}
.btn-primary {
    @apply w-full md:w-auto bg-indigo-600 hover:bg-indigo-700 text-white font-bold
           py-3 px-6 rounded-xl shadow-md hover:shadow-lg transition;
}
.btn-green {
    @apply w-full md:w-auto bg-emerald-500 hover:bg-emerald-600 text-white
           font-semibold py-3 px-6 rounded-xl shadow-md hover:shadow-lg transition;
}
.btn-gray {
    @apply w-full md:w-auto bg-gray-200 dark:bg-gray-700 hover:bg-gray-300
           dark:hover:bg-gray-600 text-gray-800 dark:text-gray-100 font-semibold
           py-3 px-6 rounded-xl shadow-md hover:shadow-lg transition;
}
