/* Reset básico para o layout ficar igual em todos os navegadores */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #27292b;
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
}

/* Card principal da calculadora */
#app {
    background: rgb(255, 255, 255);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    width: 320px;
}

h2 {
    margin-top: 0;
    color: #333;
}

/* Estilo dos campos de entrada */
.inputs input {
    width: 80px;
    padding: 12px;
    margin: 5px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.inputs input:focus {
    border-color: #007bff;
}

/* Grade de botões */
.botoes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
}

button {
    padding: 12px;
    cursor: pointer;
    border: none;
    border-radius: 6px;
    background-color: #007bff;
    color: white;
    font-weight: bold;
    font-size: 14px;
    transition: background 0.2s, transform 0.1s;
}

button:hover {
    background-color: #0056b3;
}

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

/* Estaque para o botão de limpar */
.btn-limpar {
    background-color: #dc3545;
    grid-column: span 3; /* Ocupa as 3 colunas da grade */
    margin-top: 5px;
}

.btn-limpar:hover {
    background-color: #bd2130;
}

/* Área de exibição do resultado */
#resultado {
    margin-top: 25px;
    font-size: 17px;
    font-weight: 600;
    color: #444;
    min-height: 30px;
    padding: 12px;
    border-top: 2px solid #f8f9fa;
    word-wrap: break-word;
}