/* Внешние стили */
@import url('https://cdn.jsdelivr.net/npm/@fontsource/inter@5.0.8/index.css');

/* Переменные стилей */
:root {
    --primary: #10b981; /* Emerald 500 */
    --primary-hover: #059669;
    --bg-color: #f0fdf4; /* Green 50 */
    --card-bg: #ffffff;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --border-color: #d1d5db;
    --error-color: #ef4444;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Сброс стилей и базовые настройки */
* { box-sizing: border-box; margin: 0; padding: 0; }

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

.container {
    background: var(--card-bg);
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

header { text-align: center; margin-bottom: 2rem; }

h1 { font-size: 1.5rem; color: var(--primary-hover); margin-bottom: 0.5rem; }
p.subtitle { color: var(--text-muted); font-size: 0.9rem; }

/* Стили для формы */
.form-group { margin-bottom: 1.25rem; }

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-main);
}

select, input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

select:focus, input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

button {
    width: 100%;
    padding: 0.875rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    margin-top: 1rem;
}

button:hover { background-color: var(--primary-hover); }
button:active { transform: scale(0.98); }

.error-message {
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none; /* Скрыто по умолчанию, управляется JS */
    text-align: center;
    background: #fef2f2;
    padding: 0.5rem;
    border-radius: 6px;
}

/* Стили для секции результатов */
#resultSection {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: none; /* Скрыто по умолчанию, управляется JS */
    animation: fadeIn 0.5s ease-out;
}

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

.result-card {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.water-volume {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-hover);
    margin: 0.5rem 0;
}

.volume-label { font-size: 0.9rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* Стили для бейджа уровня влаги */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.badge.low { background: #dbeafe; color: #1e40af; }
.badge.medium { background: #fef3c7; color: #92400e; }
.badge.high { background: #fee2e2; color: #991b1b; }

/* Стили для блока рекомендации */
.recommendation {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-main);
    margin-top: 1rem;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    text-align: left;
}