:root {
    --bg-gradient: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    --card-surface: rgba(255, 255, 255, 0.85);
    --text-primary: #4a4a4a;
    --pastel-pink: #ffb7b2;
    --card-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.weather-wrapper {
    width: 100%;
    max-width: 400px;
}

/* Search Bar Styles */
.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-bar input {
    flex: 1;
    padding: 14px 20px;
    border-radius: 30px;
    border: none;
    outline: none;
    background: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    font-size: 1rem;
    color: var(--text-primary);
}

.search-bar button {
    background: var(--pastel-pink);
    border: none;
    padding: 0 25px;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s;
}

.search-bar button:hover {
    transform: scale(1.04);
}

/* Glassmorphic Panel Card */
.weather-card {
    background: var(--card-surface);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.4);
    min-height: 380px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Mimicking Professional App UI Loading States */
.app-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.spinner {
    width: 42px;
    height: 42px;
    border: 4px solid rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--pastel-pink);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

/* Main Graphic Elements */
.dynamic-emoji {
    font-size: 4.5rem;
    display: inline-block;
    margin-bottom: 10px;
}

.temp-display {
    font-size: 3.5rem;
    font-weight: 700;
    color: #333;
}

.city-name {
    font-size: 1.6rem;
    margin: 5px 0;
    color: var(--text-primary);
}

.weather-desc {
    font-size: 1rem;
    color: #888;
    text-transform: capitalize;
    margin-bottom: 30px;
}

/* Dashboard Statistics Grid Layout */
.weather-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 25px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.detail-item .icon {
    font-size: 1.5rem;
}

.detail-item h4 {
    font-size: 1.1rem;
    color: #333;
}

.detail-item p {
    font-size: 0.8rem;
    color: #888;
}
