:root {
    --bg-body: #0f172a;
    --weather-card: linear-gradient(135deg, #3b82f6, #2563eb);
    --text-white: #ffffff;
    --glass: rgba(255, 255, 255, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background: var(--bg-body);
    color: var(--text-white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.weather-container {
    width: 100%;
    max-width: 450px;
    background: #1e293b;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
}

/* Search Area */
.search-box {
    padding: 1.5rem;
    display: flex;
    gap: 0.5rem;
    background: #0f172a;
}

input {
    flex: 1;
    background: #1e293b;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    color: #fff;
    outline: none;
    font-size: 1rem;
}

.btn-search,
.btn-loc {
    background: #334155;
    border: none;
    color: #fff;
    width: 50px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: 0.2s;
}

.btn-search:hover,
.btn-loc:hover {
    background: #3b82f6;
}

/* Main Card */
.weather-main {
    padding: 2rem;
    text-align: center;
    background: var(--weather-card);
    position: relative;
    overflow: hidden;
}

.weather-main::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.location-name {
    font-size: 2rem;
    font-weight: 700;
    position: relative;
}

.current-temp {
    font-size: 5rem;
    font-weight: 800;
    margin: 1rem 0;
    position: relative;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.condition {
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
    text-transform: capitalize;
}

.date-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
    position: relative;
}

/* Stats Grid */
.weather-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1.5rem;
    background: #1e293b;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 16px;
    text-align: center;
}

.stat-icon {
    font-size: 1.5rem;
    color: #60a5fa;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* Forecast */
.forecast-list {
    padding: 1.5rem;
    background: #1e293b;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.forecast-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    align-items: center;
}

.forecast-item:last-child {
    border: none;
}

.f-day {
    width: 100px;
    font-weight: 600;
    color: #cbd5e1;
}

.f-temp {
    font-weight: 700;
    color: #60a5fa;
}

.back-btn {
    display: block;
    text-align: center;
    padding: 1.5rem;
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    background: #0f172a;
}

.back-btn:hover {
    color: #fff;
}

.loading {
    display: none;
    text-align: center;
    padding: 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #334155;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}