:root {
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --text-color: #2c3e50;
    --background-light: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    color: var(--text-color);
}

header {
    color: var(--background-light);
    text-align: center;
    margin-bottom: 2rem;
    width: 100%;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px var(--shadow-color);
    letter-spacing: -0.5px;
}

section {
    background-color: var(--background-light);
    border-radius: 20px;
    padding: 2rem;
    width: 100%;
    max-width: 600px;
    margin: auto;
    box-shadow: 0 10px 30px var(--shadow-color);
}

#dados {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

#dados p {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: var(--text-color);
}

input[type="number"] {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 2px solid #e1e1e1;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 200px;
}

input[type="number"]:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

input[type="button"] {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 200px;
}

input[type="button"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

input[type="button"]:active {
    transform: translateY(0);
}

#res {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
    border: 2px solid #e1e1e1;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

footer {
    color: var(--background-light);
    text-align: center;
    margin-top: 2rem;
    font-style: italic;
    font-size: 0.9rem;
    opacity: 0.9;
}