:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --background-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

body {
    font-family: 'Segoe UI', system-ui;
    min-height: 100vh;
    margin: 0;
    background: var(--background-gradient);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.search-box {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.search-input {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-size: 1.1rem;
}

.search-btn {
    padding: 1rem 2rem;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.search-btn:hover {
    transform: translateY(-2px);
}

.weather-display {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--box-shadow);
    text-align: center;
}

.temperature {
    font-size: 4rem;
    font-weight: bold;
    margin: 1rem 0;
}

.weather-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    display: block;
}

.details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.humidity, .wind {
    background: var(--background-gradient);
    padding: 1.5rem;
    border-radius: 12px;
}

.unit-toggle {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.unit-toggle:hover {
    color: var(--secondary-color);
}

.error {
    color: #e74c3c;
    font-weight: bold;
    padding: 1rem;
}

@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .temperature {
        font-size: 3rem;
    }
}
