:root {
    --primary: #084769;
    --primary-light: #3a7ca5;
    --secondary: #ffffff;
    --accent: #5ab9ea;
    --text: #2d3748;
    --text-light: #718096;
    --bg: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.9);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, var(--bg) 0%, #ced5de 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.app-container {
    width: 100%;
    max-width: 420px;
}

.weather-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.weather-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 24px;
    text-align: center;
}

.weather-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.search-container {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    outline: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.search-input:focus {
    box-shadow: 0 0 0 3px rgba(90, 185, 234, 0.3);
}

.search-btn {
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 0 20px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.weather-content {
    padding: 24px;
    display: none;
}

.weather-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.weather-info {
    text-align: right;
}

.city-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.weather-desc {
    font-size: 1rem;
    color: var(--text-light);
    text-transform: capitalize;
}

.weather-temp {
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--text);
    position: relative;
}

.weather-temp::after {
    content: "°C";
    font-size: 1.5rem;
    position: absolute;
    top: 8px;
}

.weather-icon {
    width: 100px;
    height: 100px;
}

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

.detail-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.detail-text {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.75rem;
    color: var(--text-light);
}

.detail-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.error-message {
    color: #e53e3e;
    text-align: center;
    padding: 20px;
    display: none;
}

.loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(90, 185, 234, 0.2);
    border-radius: 50%;
    border-top-color: var(--accent);
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 480px) {
    .weather-header {
        padding: 20px;
    }

    .weather-content {
        padding: 20px;
    }

    .weather-temp {
        font-size: 3rem;
    }
}