body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #fff;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 700px;
    margin: 40px auto;
    padding: 20px;
}

h1, h2 {
    text-align: center;
    margin: 5px 0;
}

.nav-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 14px;
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.3);
    cursor: pointer;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn.disabled {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

.date-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.weather-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.weather-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.temp-main {
    font-size: 2.8rem;
    font-weight: 600;
}

.temp-range {
    margin-top: 4px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.desc {
    margin-top: 8px;
    font-size: 1rem;
}

.icon-block {
    text-align: right;
}

.icon-code {
    font-size: 2.2rem;
    font-weight: 600;
}

.code-label {
    font-size: 0.8rem;
    opacity: 0.8;
}

.weather-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px 16px;
    margin-top: 20px;
    font-size: 0.9rem;
}

.weather-footer {
    margin-top: 16px;
    font-size: 0.8rem;
    opacity: 0.8;
}

/* mobile tweaks */
@media (max-width: 600px) {
    .weather-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .icon-block {
        text-align: left;
    }
}
