* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #2d3748;
}

header p {
    color: #718096;
    font-size: 1.1em;
}

.search-section {
    margin-bottom: 30px;
}

.input-group, .coords-input {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.input-group label, .coords-input label {
    font-weight: 600;
    color: #4a5568;
    min-width: 80px;
}

input[type="text"], input[type="number"] {
    flex: 1;
    min-width: 150px;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s;
}

input[type="text"]:focus, input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
}

button {
    padding: 12px 24px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #5568d3;
}

button:active {
    transform: scale(0.98);
}

.loading, .error {
    text-align: center;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    font-size: 1.1em;
}

.loading {
    background: #edf2f7;
    color: #4a5568;
}

.error {
    background: #fed7d7;
    color: #c53030;
}

.hidden {
    display: none;
}

.forecast {
    margin-top: 30px;
}

.forecast h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2d3748;
    font-size: 1.8em;
}

#forecastDays {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.forecast-day {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.forecast-day:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.forecast-day.has-snow {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border-color: #0ea5e9;
}

.forecast-day .date {
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 10px;
    font-size: 0.95em;
}

.forecast-day .snowfall {
    font-size: 1.3em;
    font-weight: 700;
    color: #2d3748;
}

.forecast-day.has-snow .snowfall {
    color: #0369a1;
}

.summary {
    background: #f7fafc;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.summary p {
    font-size: 1.1em;
    margin: 10px 0;
    color: #4a5568;
}

.summary strong {
    color: #2d3748;
    font-size: 1.2em;
}

.disclaimer {
    margin-top: 20px;
    padding: 15px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    text-align: center;
}

.disclaimer p {
    margin: 0;
    color: #9a3412;
    font-size: 0.9em;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
    }

    header h1 {
        font-size: 2em;
    }

    .input-group, .coords-input {
        flex-direction: column;
        align-items: stretch;
    }

    .input-group label, .coords-input label {
        min-width: auto;
    }

    #forecastDays {
        grid-template-columns: 1fr;
    }
}

