* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

header h1 {
    margin-bottom: 20px;
    font-weight: 500;
}

.search-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.search-container input {
    padding: 12px 15px;
    border: none;
    border-radius: 30px;
    width: 300px;
    font-size: 16px;
    outline: none;
}

.search-container button {
    padding: 12px 20px;
    border: none;
    border-radius: 30px;
    background-color: #fff;
    color: #667eea;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-container button:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

main {
    padding: 30px;
}

.current-weather {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.weather-info h2 {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 10px;
}

.temperature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.temperature span:first-child {
    font-size: 64px;
    font-weight: 300;
    line-height: 1;
}

.unit {
    font-size: 24px;
    margin-left: 5px;
}

#weather-description {
    font-size: 18px;
    color: #666;
    text-transform: capitalize;
}

.weather-icon img {
    width: 120px;
    height: 120px;
}

.weather-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.detail {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.label {
    display: block;
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.forecast {
    margin-bottom: 30px;
}

.forecast h3 {
    margin-bottom: 15px;
    font-weight: 500;
}

.forecast-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.forecast-item {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.forecast-day {
    font-weight: 500;
    margin-bottom: 10px;
}

.forecast-icon img {
    width: 50px;
    height: 50px;
    margin: 5px 0;
}

.forecast-temp {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.max-temp {
    font-weight: 500;
}

.min-temp {
    color: #666;
}

.saved-locations {
    margin-top: 30px;
}

.saved-locations h3 {
    margin-bottom: 15px;
    font-weight: 500;
}

#saved-locations-list {
    list-style: none;
    margin-bottom: 15px;
}

#saved-locations-list li {
    padding: 10px 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

#saved-locations-list li:hover {
    background-color: #f0f0f0;
}

#saved-locations-list li .delete-btn {
    color: #ff6b6b;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

#save-location-btn {
    padding: 10px 20px;
    background-color: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#save-location-btn:hover {
    background-color: #5a6fd1;
}

@media (max-width: 768px) {
    .current-weather {
        flex-direction: column;
        text-align: center;
    }
    
    .weather-details {
        grid-template-columns: 1fr;
    }
    
    .forecast-container {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}
.navigation-buttons {
    margin-top: 20px;
    text-align: center;
}

#back-to-home-btn {
    padding: 10px 20px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

#back-to-home-btn:hover {
    background-color: #357ab8;
}