* {
    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: white;
    padding: 40px;
    border-radius: 20px;
    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;
}

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

#cityInput:focus {
    outline: none;
    border-color: #667eea;
}

#dateTime{
    color: #666;
    font-size: 0.9em;
}

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

#searchBtn:hover {
    background: #5568d3;
}

.weather-display {
    text-align: center;
    animation: fadeIn 0.5s;
}

.hidden {
    display: none;
}

#cityName {
    font-size: 2em;
    color: #333;
    margin-bottom: 20px;
}

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

#weatherIcon {
    width: 100px;
    height: 100px;
}

.temp-display {
    font-size: 4em;
    font-weight: bold;
    color: #667eea;
}

.unit {
    font-size: 0.5em;
    color: #999;
}

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

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

.detail-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.detail-item span:last-child {
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
}

.error-message {
    background: #ff6b6b;
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    animation: shake 0.5s;
}

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

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}
