/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f7f6;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    background: #ffffff;
    max-width: 500px;
    width: 100%;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
}

.como-funciona {
    background: #eef2f3;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.como-funciona h2 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #34495e;
}

/* Formulário */
.form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

label {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: #4a5568;
}

input[type="number"] {
    padding: 10px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

input[type="number"]:focus {
    border-color: #3498db;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
    cursor: pointer;
}

.form-checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Botão */
button {
    width: 100%;
    padding: 12px;
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

button:hover {
    background-color: #27ae60;
}

button:active {
    transform: scale(0.98);
}

/* Mensagens de Erro */
.erro-container {
    background-color: #fed7d7;
    color: #c53030;
    padding: 12px;
    border-radius: 6px;
    margin-top: 15px;
    border-left: 4px solid #e53e3e;
    font-size: 0.9rem;
    font-weight: 500;
}

.hidden {
    display: none !important;
}

/* Resultados e Animações */
.resultado-container {
    margin-top: 30px;
    border-top: 2px solid #edf2f7;
    padding-top: 20px;
    text-align: center;
}

.resultado-container h2 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.numeros-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.placeholder {
    color: #a0aec0;
    font-style: italic;
}

.numero-sorteado {
    background: #3498db;
    color: white;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(52, 152, 219, 0.3);
    
    /* Gatilho da Animação */
    animation: popIn 0.4s ease-out forwards;
    opacity: 0;
    transform: scale(0.5);
}

/* Keyframes para o efeito visual de surgimento */
@keyframes popIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}