/* start ng css */
* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
   font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Default background */
body {
    background: linear-gradient(to bottom, #87ceeb, #fefcea);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #333;
    transition: background 1s ease;
}

/* Weather-specific backgrounds */
body.sunny-bg {
    background: linear-gradient(to bottom, #87ceeb, #fefcea);
}

body.cloudy-bg {
    background: linear-gradient(to bottom, #b6b6b6, #e6e6e6);
}

body.rainy-bg {
    background: linear-gradient(to bottom, #616161, #9bc5c3);
}

body.stormy-bg {
    background: linear-gradient(to bottom, #4a4a4a, #2c3e50);
}

body.snowy-bg {
    background: linear-gradient(to bottom, #e6e6e6, #ffffff);
}

body.foggy-bg {
    background: linear-gradient(to bottom, #d8d8d8, #a4a4a4);
}

body.default-bg {
    background: linear-gradient(to bottom, #87ceeb, #fefcea);
}
        
.container {
    width: 100%;
    max-width: 900px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}
        
.header {
    background: linear-gradient(to right, #1a2980, #26d0ce);
    color: white;
    padding: 25px;
    text-align: center;
}
        
.header h1 {
    font-size: 32px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}
        
.search-container {
    padding: 20px;
    display: flex;
    gap: 15px;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}
        
.search-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    outline: none;
}
        
.search-btn {
    background: #1a2980;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}
        
.search-btn:hover {
    background: #26d0ce;
}
        
.current-weather {
    padding: 30px;
    text-align: center;
}
        
.city-name {
    font-size: 32px;
    margin-bottom: 15px;
    color: #1a2980;
}
        
.date {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}
        
.weather-info {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}
        
.temperature {
    font-size: 64px;
    font-weight: bold;
    color: #1a2980;
}
        
.weather-icon {
    font-size: 80px;
    color: #ff8c00;
}
        
.weather-description {
    font-size: 24px;
    text-transform: capitalize;
    margin-top: 10px;
}
        
.details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
        
.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 18px;
}
        
.detail-item i {
    width: 24px;
    color: #1a2980;
}
        
.forecast {
    padding: 30px;
    background: #f5f5f5;
}
        
.forecast-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #1a2980;
    text-align: center;
}
        
.forecast-cards {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}
        
.forecast-card {
    flex: 1;
    min-width: 150px;
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
        
.forecast-date {
    font-weight: bold;
    margin-bottom: 10px;
    color: #1a2980;
}
        
.forecast-icon {
    font-size: 40px;
    margin: 15px 0;
    color: #ff8c00;
}
        
.forecast-temp {
    font-size: 20px;
    font-weight: bold;
    color: #1a2980;
}
        
.forecast-description {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    text-transform: capitalize;
}
        
.loading {
    text-align: center;
    padding: 40px;
    font-size: 24px;
    color: #666;
    display: none;
}
        
.error-message {
    text-align: center;
    padding: 30px;
    color: #ff6b6b;
    font-size: 18px;
    display: none;
}
        
.unit-toggle {
    text-align: center;
    margin-top: 20px;
}
        
.unit-btn {
    background: #1a2980;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    transition:  0.3s;
}
        
/* Weather-specific backgrounds */
body.sunny-bg {
    background: linear-gradient(to bottom, #87ceeb, #fefcea);
}

body.cloudy-bg {
    background: linear-gradient(to bottom, #b6b6b6, #e6e6e6);
}

body.rainy-bg {
    background: linear-gradient(to bottom, #616161, #9bc5c3);
}

body.stormy-bg {
    background: linear-gradient(to bottom, #4a4a4a, #2c3e50);
}

body.snowy-bg {
    background: linear-gradient(to bottom, #e6e6e6, #ffffff);
}

body.foggy-bg {
    background: linear-gradient(to bottom, #d8d8d8, #a4a4a4);
}

body.default-bg {
    background: linear-gradient(to bottom, #87ceeb, #fefcea);
}
.unit-btn:hover {
    background: #26d0ce;
}
        
@media (max-width: 768px) {
    .weather-info {
        flex-direction: column;
        gap: 20px;
    }
    .forecast-cards {
        flex-direction: column;
    }
}