:root {
    --bg-gradient-start: #6dd5ed;
    --bg-gradient-end: #2193b0;
    --card-bg: rgba(255, 255, 255, 0.9);
    --text-color: #333;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    color: var(--text-color);
    transition: background 0.5s ease;
}

.container {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
    text-align: center;
    backdrop-filter: blur(10px);
}

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

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

input:focus {
    border-color: #2193b0;
}

button {
    padding: 12px 20px;
    background: #2193b0;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s;
}

button:hover {
    background: #1c7a94;
}

.hidden {
    display: none;
}

.weather-main {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
}

#temperature {
    font-size: 3rem;
    margin: 0;
    font-weight: 600;
}

#description {
    text-transform: capitalize;
    color: #666;
    margin-bottom: 1.5rem;
}

.details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-item span:first-child {
    font-size: 0.9rem;
    color: #888;
}

.detail-item span:last-child {
    font-weight: 600;
}

#error-message {
    color: #e74c3c;
    margin-top: 1rem;
}
