* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #222;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 1200px;
}

.card {
    width: 100%;
    background: linear-gradient(135deg, #00feba, #5b548a);
    color: #fff;
    border-radius: 20px;
    padding: 40px 35px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.search {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.search input {
    border: 0;
    outline: 0;
    background: #ebfffc;
    color: #555;
    padding: 15px 25px;
    height: 60px;
    border-radius: 30px;
    flex: 1;
    margin-right: 16px;
    font-size: 18px;
    transition: all 0.3s ease;
}

.search input:focus {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.search button {
    border: 0;
    outline: 0;
    background: #ebfffc;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search button:hover {
    background: #d1f7f2;
    transform: scale(1.05);
}

.search button i {
    font-size: 22px;
    color: #555;
}

.error {
    text-align: left;
    margin-left: 10px;
    font-size: 16px;
    margin-bottom: 10px;
    display: none;
    color: #ff6b6b;
    font-weight: 500;
}

.weather {
    display: none;
}

.current-weather {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.weather-icon {
    width: 120px;
}

.temp-details {
    text-align: left;
}

.temp {
    font-size: 60px;
    font-weight: 500;
}

.city {
    font-size: 35px;
    font-weight: 400;
    margin-top: -10px;
}

.details {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-top: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.col {
    display: flex;
    align-items: center;
    text-align: left;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 15px;
    min-width: 180px;
}

.col img {
    width: 50px;
    margin-right: 15px;
}

.humidity, .wind, .pressure {
    font-size: 24px;
    margin-top: -6px;
}

.forecast {
    margin-top: 40px;
    display: none;
}

.forecast h3 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: left;
    padding-left: 10px;
}

.forecast-cards {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.forecast-cards::-webkit-scrollbar {
    height: 8px;
}

.forecast-cards::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.forecast-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
    min-width: 140px;
    flex-shrink: 0;
}

.forecast-day {
    font-weight: 500;
    margin-bottom: 10px;
}

.forecast-icon {
    width: 50px;
    margin: 10px 0;
}

.forecast-temp {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.forecast-temp span:first-child {
    color: #ffd700;
}

.forecast-temp span:last-child {
    color: #add8e6;
}

.copyright{
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background: #121212;
    font-weight: 300;
    margin-top: 50px;
    color: #ababab;
  }
  
  .copyright i{
    color: #ff004f;
    margin: 0 5px;
  }

@media (max-width: 768px) {
    .card {
        padding: 30px 20px;
    }
    
    .search input {
        padding: 10px 20px;
        font-size: 16px;
    }
    
    .temp {
        font-size: 50px;
    }
    
    .city {
        font-size: 28px;
    }
    
    .col {
        min-width: 140px;
        padding: 10px;
    }
    
    .forecast-card {
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 25px 15px;
    }
    
    .current-weather {
        flex-direction: column;
        text-align: center;
    }
    
    .temp-details {
        text-align: center;
    }
    
    .details {
        flex-direction: column;
        align-items: center;
    }
    
    .col {
        width: 100%;
        max-width: 250px;
    }
}