:root {
    --primary: #2c3e50;
    --secondary: #27ae60;
    --accent: #2980b9;
    --background: #f4f7f6;
    --card-bg: #ffffff;
    --text-main: #333333;
    --text-muted: #7f8c8d;
}

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

body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background-color: var(--background); 
    color: var(--text-main); 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    min-height: 100vh;
    padding: 20px;
}

.container { 
    background: var(--card-bg); 
    padding: 35px 30px; 
    border-radius: 12px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.08); 
    max-width: 450px; 
    width: 100%;
    border-top: 5px solid var(--secondary);
}

h1 { 
    font-size: 22px; 
    color: var(--primary); 
    text-align: center; 
    margin-bottom: 25px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

label { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: 600; 
    color: var(--primary); 
    font-size: 14px;
}

input[type="number"] { 
    width: 100%; 
    padding: 12px 15px; 
    border: 1px solid #dcdde1; 
    border-radius: 6px; 
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type="number"]:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.2);
}

button { 
    width: 100%; 
    padding: 14px; 
    background-color: var(--secondary); 
    color: white; 
    border: none; 
    border-radius: 6px; 
    font-size: 16px; 
    font-weight: bold; 
    cursor: pointer; 
    transition: background-color 0.3s, transform 0.1s; 
}

button:hover { 
    background-color: #219150; 
}

button:active {
    transform: translateY(1px);
}

.results { 
    margin-top: 30px; 
    padding: 20px; 
    background: #f8f9fa; 
    border-radius: 8px; 
    border-left: 4px solid var(--accent);
    display: none; 
    animation: fadeIn 0.4s ease-out;
}

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

.result-item {
    margin-bottom: 12px;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.result-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.result-label {
    color: #555;
    font-weight: 500;
}

.result-value { 
    font-weight: 700; 
    color: var(--accent); 
    font-size: 16px;
}

.note {
    font-size: 12px; 
    color: var(--text-muted); 
    margin-top: 15px;
    text-align: center;
    font-style: italic;
}

.recommendation {
    margin-top: 8px;
    font-size: 14px;
    color: var(--accent);
    font-weight: 600;
    text-align: right;
}