* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 500px;
    backdrop-filter: blur(10px);
}

header h1 {
    text-align: center;
    color: #2d3436;
    font-size: 2.5em;
    margin-bottom: 30px;
    font-weight: 300;
}

.search-section {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

#cityInput {
    flex: 1;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

#cityInput:focus {
    border-color: #74b9ff;
}

#searchBtn {
    padding: 15px 25px;
    background: #74b9ff;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

#searchBtn:hover {
    background: #0984e3;
}

.weather-info {
    text-align: center;
}

.loading {
    color: #74b9ff;
    font-size: 18px;
    padding: 40px;
}

.weather-content {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.city-name {
    font-size: 2em;
    color: #2d3436;
    margin-bottom: 20px;
    font-weight: 300;
}

.weather-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.temperature {
    font-size: 4em;
    color: #74b9ff;
    font-weight: 300;
}

.weather-icon {
    font-size: 4em;
}

.description {
    font-size: 1.3em;
    color: #636e72;
    text-transform: capitalize;
    margin-top: 10px;
}

.weather-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}

.detail-item {
    background: rgba(116, 185, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.label {
    color: #636e72;
    font-weight: 500;
}

.value {
    color: #2d3436;
    font-weight: 600;
}

.error {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

@media (max-width: 480px) {
    .container {
        padding: 20px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    .weather-main {
        flex-direction: column;
        gap: 10px;
    }
    
    .temperature {
        font-size: 3em;
    }
    
    .weather-icon {
        font-size: 3em;
    }
    
    .weather-details {
        grid-template-columns: 1fr;
    }
}