* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'DM Sans', sans-serif;
}

:root {
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.25);
    --text-primary: #fff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --blue-accent: #4cc9f0;
    --yellow-accent: #fdcb6e;
    --shadow: rgba(0, 0, 0, 0.05);
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #4158D0;
    color: var(--text-primary);
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Background Elements */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(43deg, #4158D0 0%, #C850C0 46%, #FFCC70 100%);
    opacity: 0.8;
}

.clouds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.cloud-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    filter: blur(50px);
    animation: float 20s infinite alternate;
}

.cloud-2 {
    width: 300px;
    height: 300px;
    top: 60%;
    left: 70%;
    filter: blur(70px);
    animation: float 25s infinite alternate-reverse;
}

.cloud-3 {
    width: 150px;
    height: 150px;
    top: 30%;
    left: 60%;
    filter: blur(40px);
    animation: float 18s infinite alternate;
}

.cloud-4 {
    width: 250px;
    height: 250px;
    top: 70%;
    left: 20%;
    filter: blur(60px);
    animation: float 22s infinite alternate-reverse;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 30px);
    }
}

/* Container */
.container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    perspective: 1000px;
}

/* Weather Widget */
.weather-widget {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
    transform-style: preserve-3d;
}

/* Glass Panels */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 30px var(--shadow);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.glass-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow);
}

/* Location Header */
.location-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.location {
    display: flex;
    align-items: center;
    gap: 15px;
}

.location-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
}

.location-info h1 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 3px;
}

.location-info p {
    font-size: 14px;
    color: var(--text-secondary);
}

.settings-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.settings-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Date & Time */
.date-time {
    margin-bottom: 30px;
}

.date {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.time {
    font-size: 32px;
    font-weight: 700;
}

.time span {
    font-size: 24px;
    font-weight: 500;
    opacity: 0.8;
}

/* Current Weather */
.current-weather {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.temperature {
    display: flex;
    align-items: center;
    gap: 15px;
}

.weather-icon {
    width: 80px;
    height: 80px;
    background: var(--yellow-accent);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 38px;
    color: #fff;
    box-shadow: 0 5px 15px rgba(253, 203, 110, 0.3);
}

.temp-value {
    font-size: 64px;
    font-weight: 700;
    line-height: 1;
}

.temp-value span {
    font-size: 32px;
    font-weight: 500;
}

.weather-info {
    margin-left: 10px;
}

.weather-status {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
}

.feels-like {
    font-size: 16px;
    color: var(--text-secondary);
}

/* Weather Details */
.details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.detail-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
}

.detail-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.detail-value {
    font-size: 16px;
    font-weight: 600;
}

/* Forecast */
.forecast h2, .hourly-forecast h2 {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.forecast-list {
    display: flex;
    justify-content: space-between;
}

.forecast-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.forecast-day {
    font-size: 14px;
    color: var(--text-secondary);
}

.forecast-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
}

.forecast-temp {
    font-size: 16px;
    font-weight: 600;
}

/* Hourly Forecast */
.hourly-forecast {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hour-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
}

.hour-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hour-time {
    font-size: 16px;
    color: var(--text-secondary);
    width: 60px;
}

.hour-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
}

.hour-temp {
    font-size: 16px;
    font-weight: 600;
    width: 40px;
    text-align: right;
}

/* Responsive Styles */
@media (max-width: 900px) {
    .weather-widget {
        grid-template-columns: 1fr;
    }
    
    .hourly-forecast {
        height: auto;
    }
    
    .hour-list {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .hour-item {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        min-width: 80px;
    }
    
    .hour-time {
        width: auto;
    }
    
    .hour-temp {
        width: auto;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .glass-panel {
        padding: 20px;
    }
    
    .current-weather {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .details {
        grid-template-columns: 1fr;
    }
    
    .forecast-list {
        overflow-x: auto;
        padding-bottom: 10px;
        justify-content: flex-start;
        gap: 20px;
    }
    
    .forecast-item {
        min-width: 70px;
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Basic animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glass-panel {
    animation: fadeIn 0.5s ease forwards;
}

.hourly-forecast {
    animation: fadeIn 0.5s 0.2s ease forwards;
    opacity: 0;
}
