* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

.weather-container {
    max-width: 1400px;
    margin: 40px auto;
    background: #fafafa;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.location-header {
    margin-bottom: 30px;
}

.location-header h1 {
    font-size: 34px;
    font-weight: 600;
    color: #001a33;
}

.region-name {
    font-size: 16px;
    color: #666;
    margin-top: 8px;
}

.forecast-nav {
    background: #fff;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 30px;
}

.forecast-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.forecast-nav li {
    display: inline-block;
}

.forecast-nav a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #005566;
    text-decoration: none;
    border-radius: 20px;
    transition: background 0.2s ease, color 0.2s ease;
}

.forecast-nav a:hover {
    background: #e6f0fa;
    color: #003366;
}

.forecast-nav a.active {
    background: #005566;
    color: #fff;
    font-weight: 600;
}

.weather-content {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.5s ease-in;
}

.current-weather h2 {
    font-size: 22px;
    font-weight: 500;
    color: #001a33;
    margin-bottom: 20px;
}

.current-card {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.current-card .weather-icon {
    width: 80px;
    height: 80px;
}

.current-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    color: #333;
}

.current-table tr {
    border-bottom: 1px solid #e0e0e0;
}

.current-table td {
    padding: 10px 0;
    text-align: left;
}

.current-table td:first-child {
    font-weight: 500;
    color: #001a33;
    width: 50%;
}

.current-table td:last-child {
    text-align: right;
}

.current-table .conditions {
    font-size: 16px;
    font-weight: 500;
    color: #001a33;
}

.hourly-forecast {
    margin-bottom: 30px;
}

.hourly-forecast h3 {
    font-size: 20px;
    font-weight: 500;
    color: #001a33;
    margin-bottom: 20px;
}

.hourly-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 10px;
}

.hourly-item {
    flex: 0 0 140px;
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.hourly-item:hover {
    transform: translateY(-2px);
}

.hourly-item .time {
    font-size: 14px;
    font-weight: 600;
    color: #001a33;
    margin-bottom: 10px;
}

.hourly-item .weather-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
}

.hourly-item p {
    font-size: 13px;
    color: #333;
    margin: 4px 0;
}

.hourly-item p strong {
    font-weight: 500;
    color: #001a33;
}

.daily-forecast {
    margin-bottom: 30px;
}

.daily-forecast h3 {
    font-size: 20px;
    font-weight: 500;
    color: #001a33;
    margin-bottom: 20px;
}

.daily-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    color: #333;
}

.daily-table th {
    background: #f5f5f5;
    padding: 12px;
    font-weight: 500;
    color: #001a33;
    text-align: left;
}

.daily-table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
}

.daily-table .weather-icon {
    width: 30px;
    height: 30px;
    vertical-align: middle;
    margin-right: 5px;
}

.temp, .feelslike, .humidity, .windspeed, .windgust, .winddirectiondegrees, .precipprob, .precipquantity, .snowquantity, .thunderstormprob, .cloudcover {
    font-weight: 500;
    color: #333;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .weather-container {
        padding: 20px;
        margin: 20px;
    }

    .location-header h1 {
        font-size: 28px;
    }

    .region-name {
        font-size: 14px;
    }

    .forecast-nav ul {
        gap: 10px;
    }

    .forecast-nav a {
        padding: 8px 15px;
        font-size: 13px;
    }

    .current-card {
        flex-direction: column;
        align-items: center;
    }

    .current-card .weather-icon {
        margin-bottom: 15px;
    }

    .current-table td {
        text-align: center;
    }

    .current-table td:first-child {
        width: auto;
        margin-bottom: 5px;
    }

    .current-table td:last-child {
        text-align: center;
    }

    .hourly-grid {
        flex-wrap: nowrap;
        gap: 10px;
    }

    .hourly-item {
        flex: 0 0 120px;
    }
}

@media (max-width: 480px) {
    .weather-container {
        padding: 15px;
        margin: 10px;
    }

    .location-header h1 {
        font-size: 24px;
    }

    .region-name {
        font-size: 13px;
    }

    .forecast-nav a {
        padding: 6px 12px;
        font-size: 12px;
    }

    .current-weather h2 {
        font-size: 18px;
    }

    .current-card .weather-icon {
        width: 60px;
        height: 60px;
    }

    .current-table {
        font-size: 13px;
    }

    .hourly-forecast h3, .daily-forecast h3 {
        font-size: 18px;
    }

    .hourly-item .weather-icon {
        width: 35px;
        height: 35px;
    }

    .hourly-item {
        flex: 0 0 100px;
    }

    .daily-table {
        font-size: 12px;
    }

    .daily-table .weather-icon {
        width: 25px;
        height: 25px;
    }
}