* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --primary: #2a2a72;
    --secondary: #009ffd;
    --gradient: linear-gradient(45deg, #2a2a72, #009ffd);
    --text-light: #ffffff;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

body {
    min-height: 100vh;
    background: var(--gradient);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: background 0.5s ease;
}

.container {
    width: 100%;
    max-width: 800px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-light);
}

.header .logo {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    margin: 0 auto 15px;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.header h1 {
    font-size: 2.8rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #fff, #e6f7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.weather-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
    color: var(--text-light);
    animation: cardEntrance 0.8s ease;
}

.search-box {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    font-size: 16px;
    transition: all 0.3s ease;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.3);
}

button {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.weather-info {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.main-info {
    text-align: center;
    margin-bottom: 30px;
}

.local-time {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 10px 0;
    letter-spacing: 1px;
}

.temperature {
    font-size: 4rem;
    font-weight: 300;
    margin: 15px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.condition {
    font-size: 1.5rem;
    opacity: 0.9;
}

.weather-icon {
    text-align: center;
    margin: 30px 0;
}

.weather-icon i {
    font-size: 8rem;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
    animation: float 3s ease-in-out infinite;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.detail-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-5px);
}

.detail-card i {
    font-size: 2rem;
}

.detail-text span:first-child {
    font-size: 0.9rem;
    opacity: 0.8;
}

.detail-text span:last-child {
    font-size: 1.2rem;
    font-weight: 500;
}

.error-message {
    color: #ff6b6b;
    text-align: center;
    margin: 15px 0;
    display: none;
}

/* Forecast Styles */
.forecast-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
}

.forecast-container h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.forecast-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.forecast-day {
    min-width: 100px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-align: center;
}

.forecast-day i {
    font-size: 2rem;
    margin: 10px 0;
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .temperature {
        font-size: 3rem;
    }
    
    .weather-icon i {
        font-size: 6rem;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .forecast-scroll {
        flex-direction: column;
    }
    
    .forecast-day {
        width: 100%;
    }
}