/* Paleta: Tática, Sóbria e Profissional
   Cores: Grafite Profundo (#111827), Azul Aço (#1E293B), Ouro Opaco (#C2A34F), Cinza Claro (#F3F4F6) */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Nunito', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: #0F172A;
    color: #F3F4F6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

#app {
    width: 100%;
    max-width: 600px;
    min-height: 100vh;
    height: 100%;
    position: relative;
    background: #111827; /* Fundo sólido e escuro para não distrair */
    box-shadow: 0 0 30px rgba(0,0,0,0.9);
    display: flex;
    flex-direction: column;
}

/* Telas */
.screen {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 2rem;
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

.screen.active {
    display: flex;
}

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

/* Tipografia */
h1 {
    font-size: 2.5rem;
    font-weight: 900;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 1rem;
    line-height: 1.2;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

p {
    font-size: 1.2rem;
    color: #E2E8F0;
    margin-bottom: 2rem;
}

/* Botões Profissionais e Táticos */
.btn-giant {
    background-color: #C2A34F;
    color: #111827;
    border: none;
    border-radius: 8px; /* Cantos menos arredondados, mais sério */
    padding: 18px 36px;
    font-size: 1.4rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(194, 163, 79, 0.2);
    transition: transform 0.2s, background 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
}

.btn-giant:active {
    transform: scale(0.98);
}

.btn-giant:disabled {
    background: #374151;
    color: #9CA3AF;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* Pulso atenuado, apenas leve respiração no foco */
.pulse {
    animation: slightPulse 3s infinite;
}

@keyframes slightPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.pulse-working {
    animation: pulseWorkingAnim 1.5s infinite alternate ease-in-out;
}

@keyframes pulseWorkingAnim {
    from { opacity: 0.6; filter: brightness(1); }
    to { opacity: 1; filter: brightness(1.3); text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
}

.btn-audio {
    background-color: #4FA5FF;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 15px 30px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s;
}

.btn-audio:hover {
    background-color: #3b82f6;
}

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

/* Cards de Opção */
.opcoes-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.opcao-card {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #F8FAFC;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.opcao-card:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 8px 15px rgba(0,0,0,0.3);
}

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

.opcao-card.selected {
    border-color: #4FA5FF;
    background-color: #f0f7ff;
}

.opcao-card.correct {
    background-color: #10B981;
    color: white;
}

.opcao-card.wrong {
    background-color: #EF4444;
    color: white;
}

/* Barra de Progresso */
.progress-bar {
    width: 100%;
    height: 15px;
    background-color: rgba(255,255,255,0.2);
    border-radius: 10px;
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    margin: 0 20px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #FFD700;
    width: 0%;
    transition: width 0.4s ease;
    border-radius: 10px;
}

/* Paywall */
.relatorio-lock {
    background-color: #1E293B;
    border-radius: 20px;
    padding: 30px;
    margin-top: 20px;
    border: 2px solid #334155;
}

.message-parents {
    background-color: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    font-size: 1rem;
    text-align: left;
}

.btn-pay {
    background-color: #10B981;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

/* Elementos de fundo removidos em prol da concentração */
.alerta-estudo {
    background-color: rgba(239, 68, 68, 0.1);
    border-left: 4px solid #EF4444;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 25px;
    font-size: 1rem;
    text-align: left;
    color: #FECACA;
}

.pwa-prompt {
    background-color: #1E293B;
    color: #CBD5E1;
    text-align: center;
    padding: 10px;
    font-size: 0.85rem;
    border-bottom: 1px solid #334155;
}

/* Formulário de Alistamento */
.form-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.form-container input {
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid #4FA5FF;
    border-radius: 12px;
    padding: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #F8FAFC;
    outline: none;
    transition: box-shadow 0.3s, background 0.3s;
}

.form-container input::placeholder {
    color: #94A3B8;
}

.form-container input:focus {
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 0 10px rgba(79, 165, 255, 0.8);
}

/* Transições Deslizantes Framer-like (Cards de Diagnóstico) */
.slide-container {
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
    width: 100%;
}
.slide-exit-left {
    transform: translateX(-120%);
    opacity: 0;
}
.slide-enter-right {
    transform: translateX(120%);
    opacity: 0;
}
.slide-center {
    transform: translateX(0);
    opacity: 1;
}

/* Escudos de Perfil */
.shield-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.shield-card {
    background-color: #1E293B;
    border: 3px solid #334155;
    border-radius: 15px;
    padding: 15px 10px;
    flex: 1 1 30%;
    min-width: 120px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: all 0.2s;
}

.shield-card.active {
    border-color: #FFD700;
    background-color: rgba(255, 215, 0, 0.2);
    transform: scale(1.05);
}

/* Carrossel Mobile Premium (Radar de Editais) */
.premium-carousel {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.premium-carousel::-webkit-scrollbar {
    display: none;
}
.card-boletim {
    scroll-snap-align: center;
    flex: 0 0 85%;
    max-width: 320px;
    background: linear-gradient(145deg, #1E293B, #0F172A);
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    box-shadow: 0 8px 16px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
}
