body {
    margin: 0;
    background: linear-gradient(135deg, #dbeafe, #ede9fe, #fce7f3);
    color: #1e293b;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
}



.weather-header {
    position: relative;
    overflow: hidden;
    background: linear-gradient( 135deg, #2563eb 0%, #4f46e5 50%, #7c3aed 100% );
    color: white;
    border-radius: 28px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 15px 35px rgba(79, 70, 229, 0.30);
}

    .weather-header::before {
        content: "";
        position: absolute;
        width: 200px;
        height: 200px;
        background: rgba(255, 255, 255, 0.10);
        border-radius: 50%;
        top: -80px;
        right: -50px;
    }

    .weather-header::after {
        content: "";
        position: absolute;
        width: 130px;
        height: 130px;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 50%;
        bottom: -60px;
        left: 35%;
    }

    .weather-header h1 {
        position: relative;
        z-index: 2;
        font-size: 2.5rem;
        font-weight: 800;
        margin: 0;
    }

    .weather-header p {
        position: relative;
        z-index: 2;
        margin-top: 10px;
        margin-bottom: 0;
        opacity: 0.85;
        font-size: 1rem;
    }



.weather-layout {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 25px;
    align-items: start;
}



.selected-weather {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 28px;
    padding: 55px;
    min-height: 500px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.10);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

    .selected-weather::before {
        content: "";
        position: absolute;
        width: 300px;
        height: 300px;
        background: linear-gradient( 135deg, rgba(59, 130, 246, 0.12), rgba(139, 92, 246, 0.10) );
        border-radius: 50%;
        top: -150px;
        right: -100px;
    }


.selected-date {
    position: relative;
    color: #4f46e5;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
}



.selected-time {
    color: #64748b;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
}


.selected-icon {
    font-size: 8rem;
    margin: 10px 0 15px;
    filter: drop-shadow( 0 10px 10px rgba(0, 0, 0, 0.12) );
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}




.selected-temperature {
    font-size: 4.5rem;
    font-weight: 800;
    background: linear-gradient( 135deg, #2563eb, #7c3aed );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


.selected-info {
    display: flex;
    gap: 20px;
    margin-top: 35px;
}

    .selected-info div {
        min-width: 150px;
        padding: 16px 20px;
        border-radius: 16px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        display: flex;
        flex-direction: column;
        gap: 6px;
        transition: transform 0.2s ease;
    }

        .selected-info div:hover {
            transform: translateY(-3px);
        }

    .selected-info strong {
        color: #334155;
        font-size: 0.9rem;
    }

    .selected-info span {
        color: #64748b;
        font-size: 0.95rem;
    }




.forecast-container {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    padding: 15px;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
}

.forecast-title {
    font-size: 1rem;
    font-weight: 700;
    color: #475569;
    padding: 5px 10px 15px;
}

.forecast-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 650px;
    overflow-y: auto;
    padding-right: 5px;
}




.forecast-card {
    position: relative;
    background: white;
    border: 2px solid transparent;
    border-radius: 17px;
    padding: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

    .forecast-card:hover {
        transform: translateX(-5px);
        box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
    }

    .forecast-card.active {
        border-color: #4f46e5;
        background: linear-gradient( 135deg, #eff6ff, #eef2ff );
        box-shadow: 0 8px 20px rgba(79, 70, 229, 0.15);
    }




.forecast-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient( 135deg, #dbeafe, #ede9fe );
    font-size: 1.9rem;
}



.forecast-details {
    flex: 1;
}

.forecast-day {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.forecast-time {
    font-size: 1rem;
    font-weight: 800;
    color: #1e293b;
}

.forecast-temperature {
    color: #64748b;
    font-size: 0.85rem;
    margin-top: 2px;
}




.forecast-list::-webkit-scrollbar {
    width: 7px;
}

.forecast-list::-webkit-scrollbar-track {
    background: transparent;
}

.forecast-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

    .forecast-list::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }




@@media (max-width: 900px) {

    .weather-layout {
        grid-template-columns: 1fr;
    }

    .forecast-list {
        max-height: none;
    }
}


@@media (max-width: 600px) {

    .weather-header {
        padding: 30px 25px;
        border-radius: 20px;
    }

        .weather-header h1 {
            font-size: 2rem;
        }

    .selected-weather {
        padding: 35px 20px;
        min-height: 400px;
    }

    .selected-icon {
        font-size: 8rem;
        margin: 10px 0 15px;
        filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.12));
        animation: float 3s ease-in-out infinite;
    }

    @keyframes float {
        0%, 100% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-8px);
        }
    }


    .selected-temperature {
        font-size: 3.5rem;
    }

    .selected-info {
        gap: 10px;
        width: 100%;
    }

        .selected-info div {
            min-width: 0;
            flex: 1;
            padding: 12px;
        }
}

