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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 2em;
}

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

input[type="text"] {
    flex: 1;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 50px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

input[type="text"]:focus {
    border-color: #667eea;
}

button {
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

button:active {
    transform: translateY(0);
}

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

.weather-info.active {
    display: block;
    animation: fadeIn 0.5s;
}

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

.location {
    font-size: 2em;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.weather-icon {
    font-size: 100px;
    margin: 20px 0;
}

.temperature {
    font-size: 4em;
    color: #667eea;
    font-weight: bold;
    margin: 20px 0;
}

.description {
    font-size: 1.5em;
    color: #666;
    text-transform: capitalize;
    margin-bottom: 30px;
}

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

.detail-item {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
}

.detail-label {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.detail-value {
    color: #333;
    font-size: 1.3em;
    font-weight: bold;
}

.error {
    display: none;
    color: #e74c3c;
    text-align: center;
    padding: 15px;
    background: #fee;
    border-radius: 10px;
    margin-top: 20px;
}

.error.active {
    display: block;
    animation: fadeIn 0.5s;
}

.loading {
    display: none;
    text-align: center;
    color: #667eea;
    font-size: 1.2em;
    margin-top: 20px;
}

.loading.active {
    display: block;
}

.footer {
    text-align: center;
    color: #666;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    font-size: 0.9em;
}