* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    height: 100vh;
    background: linear-gradient(135deg, #0f0f0f, #1a1a1a);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
}

.weather-container {
    width: 400px;
    padding: 35px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    gap: 25px;
    text-align: center;
}

.weather-container h1 {
    font-size: 28px;
    font-weight: 600;
    color: #ffffffd9;
}

.search-box {
    display: flex;
    position: relative;
    border-radius: 10px;
}

#city-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 16px;
    transition: 0.3s ease;
    border-radius: 10px 0 0 10px;
}

#city-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#search-btn {
    padding: 12px 16px;
    border: none;
    background-color: rgba(255, 255, 255, 0.15);
    color: rgb(160, 160, 160);
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s ease;
    border-radius: 0 10px 10px 0;
}

#search-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

#search-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#btn {
    transition: transform 0.2s;
}

#btn:hover {
    transform: scale(1.05);
}

.autocomplete-list {
    position: absolute;
    top: 100%;      
    left: 0;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background: rgba(75, 75, 75, 0.943);
    /* backdrop-filter: blur(200px); */
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 1000;

    border-radius: 0 0 10px 10px;
}

.autocomplete-list li {
    padding: 10px 15px;
    cursor: pointer;
    color: #fff;
    text-align: left;
    transition: background 0.2s;
}

.autocomplete-list li:hover,
.autocomplete-list li.active {
    background: #003ea2b3;
}

#city {
    font-size: 26px;
    font-weight: 600;
    min-height: 31px;
}

#temp {
    font-size: 55px;
    font-weight: 700;
    margin-top: 5px;
    background: #00c6fb;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#description {
    font-size: 18px;
    opacity: 0.9;
    min-height: 27px;
}

.extra-info {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

.extra-info div {
    font-size: 15px;
    color: #dcdcdc;
}

.extra-info span {
    display: block;
    margin-top: 4px;
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
}

.error-message {
    color: #ff6b6b;
    font-size: 14px;
    margin-top: -10px;
}

.loading {
    opacity: 0.6;
}

@media (max-width: 450px) {
    .weather-container {
        width: 92%;
        padding: 25px;
    }

    #temp {
        font-size: 45px;
    }
}
