* {
    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);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 500px;
    width: 100%;
}

h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
}

.tagline {
    color: #666;
    margin-bottom: 30px;
    font-size: 1rem;
}

#weather-display {
    margin-top: 30px;
}

.loading {
    color: #667eea;
    font-size: 1.1rem;
}

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

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

.city-name {
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
}

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

.description {
    font-size: 1.3rem;
    color: #555;
    text-transform: capitalize;
    margin-bottom: 15px;
}

.weather-icon {
    width: 100px;
    height: 100px;
}
.container {
    text-align: center;
    margin-top: 80px;
}

.search-section {
    margin-bottom: 30px;
}

#cityInput {
    padding: 10px;
    width: 250px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

#cityInput:focus {
    outline: none;
    border-color: #0077ff;
}

#searchBtn {
    padding: 10px 15px;
    border: none;
    background-color: #0077ff;
    color: white;
    border-radius: 5px;
    cursor: pointer;/* Search Section */
.search-section {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

#cityInput {
    padding: 10px 15px;
    border-radius: 20px;
    border: 1px solid #ddd;
    outline: none;
    font-size: 14px;
    width: 200px;
}

#cityInput:focus {
    border-color: #6c63ff;
}

#searchBtn {
    padding: 10px 20px;
    border-radius: 20px;
    border: none;
    background-color: #6c63ff;
    color: white;
    cursor: pointer;
    transition: 0.3s ease;
}

#searchBtn:hover {
    background-color: #5a52d6;
}

#searchBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

}

#searchBtn:hover {
    background-color: #005ecc;
}
.loading-container {
    margin-top: 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #eee;
    border-top: 4px solid #6c63ff;
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.error-message {
    margin-top: 20px;
    color: #d9534f;
    font-weight: 500;
}
.forecast-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.forecast-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.forecast-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s ease;
}

.forecast-card:hover {
    transform: translateY(-5px);
}

.forecast-card img {
    width: 50px;
}

.forecast-temp {
    font-weight: bold;
}
