/* Centralização da página e fundo agradável */
body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
}

/* Estilização do container principal / cartão */
form {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.container {
    padding: 0;
}

/* Título */
h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #333333;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Rótulos dos campos */
.form-label {
    font-weight: 600;
    color: #555555;
    margin-bottom: 0.5rem;
}

/* Campos de entrada */
.form-control {
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid #ced4da;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

/* Botão de calcular */
.btn-danger {
    padding: 0.75rem;
    font-weight: 600;
    border-radius: 8px;
    margin-top: 0.5rem;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-danger:hover {
    transform: translateY(-2px);
}

.btn-danger:active {
    transform: translateY(0);
}

/* Área do resultado */
#resultado {
    width: 100%;
    max-width: 400px;
    font-size: 1.2rem;
    color: #1c1e21;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Esconde o container do resultado quando estiver vazio */
#resultado:empty {
    display: none;
}