  
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e22ce 100%);
            min-height: 100vh;
            padding: 20px;
            transition: all 0.5s ease;
        }

        body.dark {
            background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            background: rgba(255, 255, 255, 0.98);
            border-radius: 25px;
            box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
            overflow: hidden;
            animation: slideUp 0.6s ease;
        }

        body.dark .container {
            background: rgba(30, 41, 59, 0.95);
            color: #e2e8f0;
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        header {
            background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
            color: white;
            padding: 40px 30px;
            text-align: center;
            position: relative;
        }

        body.dark header {
            background: linear-gradient(135deg, #1e40af 0%, #6d28d9 100%);
        }

        h1 {
            font-size: 2.8em;
            margin-bottom: 25px;
            font-weight: 700;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
            animation: fadeInDown 0.8s ease;
        }

        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .theme-toggle {
            position: absolute;
            top: 25px;
            right: 25px;
            background: rgba(255, 255, 255, 0.25);
            border: 2px solid rgba(255, 255, 255, 0.3);
            font-size: 1.8rem;
            cursor: pointer;
            padding: 12px 16px;
            border-radius: 50%;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
        }

        .theme-toggle:hover {
            background: rgba(255, 255, 255, 0.35);
            transform: rotate(180deg) scale(1.1);
        }

        .search-box {
            display: flex;
            gap: 12px;
            justify-content: center;
            flex-wrap: wrap;
            position: relative;
            max-width: 700px;
            margin: 0 auto;
        }

        .input-wrapper {
            position: relative;
            flex: 1;
            min-width: 280px;
        }

        #cityInput {
            width: 100%;
            padding: 15px 25px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 30px;
            font-size: 16px;
            outline: none;
            background: rgba(255, 255, 255, 0.95);
            transition: all 0.3s ease;
        }

        #cityInput:focus {
            border-color: #fff;
            box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
            transform: translateY(-2px);
        }

        body.dark #cityInput {
            background: rgba(51, 65, 85, 0.9);
            color: #e2e8f0;
            border-color: rgba(148, 163, 184, 0.3);
        }

        .suggestions {
            list-style: none;
            position: absolute;
            background: white;
            width: 100%;
            max-height: 250px;
            overflow-y: auto;
            margin-top: 8px;
            padding: 0;
            border-radius: 15px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
            display: none;
            z-index: 1000;
            animation: slideDown 0.3s ease;
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        body.dark .suggestions {
            background: #334155;
            color: #ffffff;
        }

        .suggestions li {
            padding: 14px 20px;
            cursor: pointer;
            border-bottom: 1px solid #e5e7eb;
            transition: all 0.2s ease;
        }

        body.dark .suggestions li {
            border-bottom-color: #475569;
        }

        .suggestions li:hover {
            background: #f3f4f6;
            padding-left: 25px;
        }

        body.dark .suggestions li:hover {
            background: #475569;
        }

        .suggestions li:last-child {
            border-bottom: none;
        }

        button {
            padding: 15px 30px;
            border: none;
            border-radius: 30px;
            background: white;
            color: #3b82f6;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }

        button:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
            background: #f8fafc;
        }

        button:active {
            transform: translateY(-1px);
        }

        body.dark button {
            background: #334155;
            color: #60a5fa;
        }

        body.dark button:hover {
            background: #475569;
        }

        .search-loader {
            position: absolute;
            right: -45px;
            top: 50%;
            transform: translateY(-50%);
            width: 24px;
            height: 24px;
            border: 3px solid rgba(255, 255, 255, 0.3);
            border-top: 3px solid white;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            display: none;
        }

        @keyframes spin {
            to {
                transform: translateY(-50%) rotate(360deg);
            }
        }

        main {
            padding: 35px;
        }

        .current-weather {
            background: linear-gradient(135deg, #ec4899 0%, #f97316 100%);
            border-radius: 20px;
            padding: 35px;
            color: white;
            margin-bottom: 35px;
            box-shadow: 0 10px 30px rgba(236, 72, 153, 0.3);
            animation: fadeIn 0.6s ease;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }

        body.dark .current-weather {
            background: linear-gradient(135deg, #be185d 0%, #c2410c 100%);
        }

        .weather-info {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 25px;
            align-items: center;
        }

        .weather-main {
            text-align: center;
        }

        .city-name {
            font-size: 2.2em;
            margin-bottom: 15px;
            font-weight: 600;
        }

        .weather-icon {
            font-size: 6em;
            margin: 10px 0;
            animation: bounce 2s ease infinite;
        }

        @keyframes bounce {
            0%, 100% {
                transform: translateY(0);
            }
            50% {
                transform: translateY(-10px);
            }
        }

        .temp {
            font-size: 4.5em;
            font-weight: 700;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
        }

        .description {
            font-size: 1.6em;
            text-transform: capitalize;
            margin-top: 10px;
            opacity: 0.95;
        }

        .weather-stats {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 18px;
        }

        .stat {
            background: rgba(255, 255, 255, 0.25);
            padding: 18px;
            border-radius: 15px;
            backdrop-filter: blur(10px);
            transition: all 0.3s ease;
        }

        .stat:hover {
            background: rgba(255, 255, 255, 0.35);
            transform: translateY(-3px);
        }

        .stat-label {
            font-size: 0.95em;
            opacity: 0.9;
            margin-bottom: 5px;
        }

        .stat-value {
            font-size: 1.5em;
            font-weight: 700;
            margin-top: 8px;
        }

        .tabs {
            display: flex;
            gap: 12px;
            margin-bottom: 25px;
            border-bottom: 2px solid #e5e7eb;
            overflow-x: auto;
        }

        body.dark .tabs {
            border-bottom-color: #475569;
        }

        .tab {
            background: transparent;
            color: #3b82f6;
            border-radius: 0;
            border-bottom: 3px solid transparent;
            padding: 16px 28px;
            box-shadow: none;
            transition: all 0.3s ease;
        }

        body.dark .tab {
            color: #60a5fa;
        }

        .tab:hover {
            background: rgba(59, 130, 246, 0.1);
            transform: translateY(0);
        }

        .tab.active {
            border-bottom-color: #3b82f6;
            font-weight: 700;
            color: #1e40af;
        }

        body.dark .tab.active {
            border-bottom-color: #60a5fa;
            color: #93c5fd;
        }

        .tab-pane {
            display: none;
            animation: fadeIn 0.4s ease;
        }

        .tab-pane.active {
            display: block;
        }

        .hourly-forecast {
            display: flex;
            overflow-x: auto;
            gap: 18px;
            padding: 25px 5px;
            scrollbar-width: thin;
        }

        .hourly-forecast::-webkit-scrollbar {
            height: 8px;
        }

        .hourly-forecast::-webkit-scrollbar-track {
            background: #f1f5f9;
            border-radius: 10px;
        }

        .hourly-forecast::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border-radius: 10px;
        }

        .hourly-item {
            min-width: 130px;
            background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
            padding: 22px;
            border-radius: 18px;
            text-align: center;
            color: white;
            box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
            transition: all 0.3s ease;
        }

        .hourly-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4);
        }

        body.dark .hourly-item {
            background: linear-gradient(135deg, #0e7490 0%, #1e40af 100%);
        }

        .hour {
            font-weight: 600;
            margin-bottom: 12px;
            font-size: 1.05em;
        }

        .hour-icon {
            font-size: 2.5em;
            margin: 12px 0;
        }

        .hour-temp {
            font-size: 1.4em;
            font-weight: 700;
        }

        .daily-forecast {
            display: grid;
            gap: 18px;
        }

        .daily-item {
            display: grid;
            grid-template-columns: 1.2fr 0.8fr 1fr 0.8fr;
            align-items: center;
            background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
            padding: 22px 25px;
            border-radius: 18px;
            color: white;
            box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
            transition: all 0.3s ease;
        }

        .daily-item:hover {
            transform: translateX(5px);
            box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
        }

        body.dark .daily-item {
            background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
        }

        .day {
            font-weight: 700;
            font-size: 1.15em;
        }

        .day-icon {
            font-size: 2.5em;
            text-align: center;
        }

        .day-desc {
            text-transform: capitalize;
            opacity: 0.95;
        }

        .day-temps {
            text-align: right;
        }

        .temp-high {
            font-weight: 700;
            font-size: 1.3em;
        }

        .temp-low {
            opacity: 0.8;
            margin-top: 4px;
        }

        .weather-details {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 20px;
        }

        .detail-card {
            background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
            padding: 28px;
            border-radius: 18px;
            color: white;
            box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
            transition: all 0.3s ease;
        }

        .detail-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
        }

        body.dark .detail-card {
            background: linear-gradient(135deg, #6d28d9 0%, #4f46e5 100%);
        }

        .detail-title {
            font-size: 1em;
            opacity: 0.9;
            margin-bottom: 12px;
            font-weight: 500;
        }

        .detail-value {
            font-size: 2.2em;
            font-weight: 700;
        }

        .favorites {
            margin-top: 45px;
            padding-top: 35px;
            border-top: 2px solid #e5e7eb;
        }

        body.dark .favorites {
            border-top-color: #475569;
        }

        .favorites h3 {
            margin-bottom: 22px;
            color: #3b82f6;
            font-size: 1.5em;
            font-weight: 700;
        }

        body.dark .favorites h3 {
            color: #60a5fa;
        }

        .favorites-list {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            margin-bottom: 22px;
            min-height: 50px;
        }

        .favorite-item {
            background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
            color: white;
            padding: 12px 22px;
            border-radius: 25px;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            font-weight: 500;
            box-shadow: 0 3px 10px rgba(59, 130, 246, 0.3);
        }

        .favorite-item:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
        }

        body.dark .favorite-item {
            background: linear-gradient(135deg, #1e40af 0%, #6d28d9 100%);
        }

        .remove-favorite {
            margin-left: 12px;
            cursor: pointer;
            opacity: 0.8;
            font-weight: 700;
            transition: all 0.2s ease;
        }

        .remove-favorite:hover {
            opacity: 1;
            transform: scale(1.2);
        }

        .loading {
            text-align: center;
            padding: 50px;
            font-size: 1.3em;
            color: white;
            font-weight: 500;
        }

        .error {
            background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
            color: white;
            padding: 25px;
            border-radius: 15px;
            text-align: center;
            font-weight: 500;
            box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
        }

        body.dark footer {
            background: #1e293b;
            color: #94a3b8;
        }

        @media (max-width: 768px) {
            h1 {
                font-size: 2em;
            }

            .weather-info {
                grid-template-columns: 1fr;
            }

            .daily-item {
                grid-template-columns: 1fr;
                text-align: center;
                gap: 12px;
            }

            .day-temps {
                text-align: center;
            }

            .search-box {
                flex-direction: column;
            }

            .input-wrapper {
                width: 100%;
            }

            .search-loader {
                right: 15px;
            }

            .theme-toggle {
                top: 15px;
                right: 15px;
            }
        }
    








        /* Light mode – fix contrast */
.suggestions {
    background: #ffffff;
    color: #0f172a;          /* dark text */
}

.suggestions li {
    color: #0f172a;          /* strong readable text */
    font-weight: 500;
}

.suggestions li:hover {
    background: #e5e7eb;     /* darker hover for visibility */
}

/* ===== Info Section ===== */
.info-section {
    max-width: 1200px;
    margin: 80px auto 60px;
    padding: 0 20px;
}

.info-section h2 {
    font-size: 2.2em;
    margin-bottom: 20px;
    color: #1e40af;
}

body.dark .info-section h2 {
    color: #93c5fd;
}

.info-intro {
    font-size: 1.1em;
    color: #475569;
    margin-bottom: 40px;
    max-width: 800px;
}

body.dark .info-intro {
    color: #94a3b8;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.info-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

body.dark .info-card {
    background: linear-gradient(135deg, #0f172a 0%, #020617 100%);
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}

.info-card h3 {
    margin-bottom: 12px;
    font-size: 1.2em;
    color: #1e293b;
}

body.dark .info-card h3 {
    color: #e2e8f0;
}

.info-card p {
    color: #475569;
    line-height: 1.6;
}

body.dark .info-card p {
    color: #94a3b8;
}

.info-note {
    margin-top: 45px;
    padding: 22px;
    border-radius: 15px;
    background: #fff7ed;
    color: #92400e;
    font-size: 0.95em;
}

body.dark .info-note {
    background: #451a03;
    color: #fdba74;
}

/* ===== Footer ===== */
.app-footer {
    background: #f8fafc;
    border-top: 2px solid #e5e7eb;
    padding: 50px 20px 25px;
    margin-top: 60px;
}

body.dark .app-footer {
    background: #020617;
    border-top-color: #334155;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.2fr 3fr;
    gap: 40px;
}

.footer-brand h3 {
    font-size: 1.6em;
    color: #1e40af;
    margin-bottom: 12px;
}

body.dark .footer-brand h3 {
    color: #93c5fd;
}

.footer-brand p {
    color: #475569;
    line-height: 1.6;
}

body.dark .footer-brand p {
    color: #94a3b8;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 25px;
}

.footer-column h4 {
    font-size: 1em;
    margin-bottom: 12px;
    color: #1e293b;
}

body.dark .footer-column h4 {
    color: #e2e8f0;
}

.footer-column a {
    display: block;
    color: #475569;
    text-decoration: none;
    font-size: 0.95em;
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: #3b82f6;
}

body.dark .footer-column a {
    color: #94a3b8;
}

body.dark .footer-column a:hover {
    color: #60a5fa;
}

.footer-bottom {
    margin-top: 35px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    font-size: 0.9em;
    color: #64748b;
}

body.dark .footer-bottom {
    border-top-color: #334155;
    color: #94a3b8;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        margin-bottom: 25px;
    }
}











/* ===== Premium Icons ===== */
.weather-svg {
    width: 64px;
    height: 64px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.hourly-icon svg {
    width: 36px;
    height: 36px;
}

.daily-icon svg {
    width: 42px;
    height: 42px;
}

.icon-muted {
    opacity: 0.85;
}
button svg {
  vertical-align: middle;
  margin-right: 6px;
}
.theme-toggle svg {
  margin: 0;
}




/* =========================
   Compare Cities Section
========================= */

.comparison-section {
    margin-top: 40px;
    padding: 24px;
    border-radius: 14px;
    background: var(--card-bg, #f6f7f9);
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

body.dark .comparison-section {
    background: #1c1f26;
}

/* Title */
.comparison-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: var(--text-primary, #222);
}

body.dark .comparison-section h3 {
    color: #eaeaea;
}

/* Inputs Row */
.compare-inputs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Inputs */
.compare-inputs input {
    flex: 1;
    min-width: 140px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.compare-inputs input:focus {
    outline: none;
    border-color: #4f8cff;
    box-shadow: 0 0 0 2px rgba(79,140,255,0.2);
}

body.dark .compare-inputs input {
    background: #111827;
    border-color: #2a2f3a;
    color: #e5e7eb;
}

/* Button */
#compareBtn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #4f8cff, #2563eb);
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#compareBtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(37,99,235,0.35);
}

#compareBtn:active {
    transform: translateY(0);
}

/* Comparison Result */
#comparisonResult {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

/* Result Card */
.comparison-card {
    padding: 16px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

body.dark .comparison-card {
    background: #111827;
}

/* Result Text */
.comparison-card h4 {
    margin-bottom: 8px;
    font-size: 1rem;
}

.comparison-card p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.radar-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.radar-container {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.radar-container h3 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#radarMap {
    height: 500px;
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.radar-controls {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.radar-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.radar-btn:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
}

.radar-btn.active {
    background: #4a90e2;
    color: white;
    border-color: #4a90e2;
}

.dark .radar-container {
    background: #2d3748;
}

.dark .radar-container h3 {
    color: #e2e8f0;
}

.dark .radar-btn {
    background: #1a202c;
    color: #e2e8f0;
    border-color: #4a5568;
}

.dark .radar-btn:hover {
    background: #4a5568;
}

.dark .radar-btn.active {
    background: #4a90e2;
    color: white;
    border-color: #4a90e2;
}

@media (max-width: 768px) {
    #radarMap {
        height: 350px;
    }
    
    .radar-controls {
        flex-wrap: wrap;
    }
    
    .radar-btn {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }
}

