/* Időjárás Magyarország - Fő stílusok */
:root {
    /* Színpaletta */
    --primary-blue: #2196F3;
    --secondary-blue: #64B5F6;
    --accent-blue: #0D47A1;
    --success-green: #4CAF50;
    --warning-orange: #FF9800;
    --danger-red: #F44336;
    --info-cyan: #00BCD4;

    /* Háttér színek */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F9FA;
    --bg-tertiary: #E3F2FD;
    --bg-card: #FFFFFF;

    /* Szöveg színek */
    --text-primary: #212121;
    --text-secondary: #757575;
    --text-muted: #9E9E9E;
    --text-white: #FFFFFF;

    /* Árnyékok */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
    --shadow-xl: 0 12px 32px rgba(0,0,0,0.25);

    /* Egyéb */
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Alapvető reset és tipográfia */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Fejléc */
.header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    color: var(--text-white);
    padding: 3rem 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    height: 180px;
    z-index: 1000;
}


/* Utility osztályok */
.container {

    max-width: 1250px;
    margin: 0 auto;
    padding: 0 1rem;

}

.fejlec{



    margin-top: 50px;

}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-white);
}

.logo i {
    font-size: 2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Navigáció */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.theme-switcher, .ai-switcher {
    background: rgba(255,255,255,0.2);
    border: none;
    color: var(--text-white);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.theme-switcher:hover, .ai-switcher:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Keresőmező */
.search-container {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: none;
    border-radius: var(--border-radius);
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    font-size: 1rem;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* Időjárás kártyák */
.weather-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.weather-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.weather-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
}

.weather-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.weather-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.city-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.weather-icon {
    width: 80px;
    height: 80px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.weather-main {
    text-align: center;
    margin-bottom: 2rem;
}

.temperature {
    font-size: 3rem;
    font-weight: 300;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.weather-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-transform: capitalize;
}

.weather-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.weather-detail {
    text-align: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.weather-detail:hover {
    background: var(--bg-tertiary);
    transform: scale(1.05);
}

.detail-icon {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

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

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

/* AI Elemzés szekció */
.ai-analysis {
    background: linear-gradient(135deg, var(--info-cyan) 0%, var(--primary-blue) 100%);
    color: var(--text-white);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-lg);
}

.ai-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.ai-title {
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ai-provider {
    background: rgba(255,255,255,0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.ai-summary {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.ai-recommendations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.recommendation {
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    border-left: 4px solid var(--warning-orange);
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.activity {
    text-align: center;
    padding: 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: var(--border-radius-sm);
}

.activity-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.activity-status {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.activity-description {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* Térkép */
.map-container {
    height: 500px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin: 2rem 0;
}

/* Grafikonok */
.charts-container {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin: 2rem 0;
}

.chart-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.chart-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.chart-tab {
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-blue);
    background: transparent;
    color: var(--primary-blue);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.chart-tab.active, .chart-tab:hover {
    background: var(--primary-blue);
    color: var(--text-white);
}

.chart-library-switch {
    background: var(--secondary-blue);
    color: var(--text-white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.chart-library-switch:hover {
    background: var(--primary-blue);
    transform: translateY(-2px);
}

/* Nézet váltók */
.view-controls {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    justify-content: center;
    flex-wrap: wrap;
}

.view-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-blue);
    background: transparent;
    color: var(--primary-blue);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-btn.active, .view-btn:hover {
    background: var(--primary-blue);
    color: var(--text-white);
    transform: translateY(-2px);
}

/* Lista nézet */
.weather-list {
    display: none;
}

.weather-list.active {
    display: block;
}

.weather-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--border-radius-sm);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.weather-list-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

/* Rács nézet */
.weather-grid-view {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.weather-grid-view.active {
    display: grid;
}

.weather-grid-item {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}

.weather-grid-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

/* Loading és hibaüzenetek */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--bg-secondary);
    border-top: 4px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    background: var(--danger-red);
    color: var(--text-white);
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    margin: 1rem 0;
    text-align: center;
}

.success-message {
    background: var(--success-green);
    color: var(--text-white);
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    margin: 1rem 0;
    text-align: center;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: var(--text-white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-blue);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
    text-align: center;
    color: var(--text-muted);
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--text-primary);
    color: var(--text-white);
    padding: 1rem;
    z-index: 10000;
    box-shadow: var(--shadow-lg);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cookie-buttons button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.cookie-buttons .btn-primary {
    background: var(--primary-blue);
    color: var(--text-white);
}

.cookie-buttons .btn-secondary {
    background: var(--text-muted);
    color: var(--text-white);
}

.cookie-buttons .btn-outline {
    background: transparent;
    color: var(--text-white);
    border: 1px solid var(--text-white);
}



.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* Reszponzív design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        text-align: center;
    }

    .nav-controls {
        justify-content: center;
        width: 100%;
    }

    .weather-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .weather-card {
        padding: 1.5rem;
    }

    .temperature {
        font-size: 2.5rem;
    }

    .weather-details {
        grid-template-columns: repeat(2, 1fr);
    }

    .ai-recommendations {
        grid-template-columns: 1fr;
    }

    .activities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .chart-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .chart-tabs {
        justify-content: center;
    }

    .view-controls {
        flex-direction: column;
    }

    .view-btn {
        justify-content: center;
    }

    .weather-list-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .map-container {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }

    .weather-card {
        padding: 1rem;
    }

    .temperature {
        font-size: 2rem;
    }

    .weather-details {
        grid-template-columns: 1fr;
    }

    .activities-grid {
        grid-template-columns: 1fr;
    }

    .chart-tabs {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Print stílusok */
@media print {
    .header, .footer, .cookie-banner, .nav-controls {
        display: none;
    }

    .weather-card {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }

    .ai-analysis {
        background: #f5f5f5;
        color: #000;
    }
}




/* Cities Grid */
.cities-section {
    margin: 3rem 0;
}

.cities-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 600;
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.city-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.city-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue);
}

.city-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.city-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.city-county {
    background: var(--bg-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.city-weather {
    text-align: center;
    margin: 1.5rem 0;
}

.city-temp {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.city-condition {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.city-population {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Search Results */
.search-wrapper {
    position: relative;
    width: 100%;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-lg);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 0.5rem;
}

.search-result {
    padding: 1rem;
    border-bottom: 1px solid var(--bg-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.search-result:hover {
    background: var(--bg-secondary);
}

.search-result:last-child {
    border-bottom: none;
}

.search-result .city-name {
    font-weight: 600;
    color: var(--text-primary);
}

.search-result .city-county {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Forecast Section */
.forecast-section {
    margin: 3rem 0;
}

.forecast-container {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

/* Map Info */
.map-info {
    text-align: center;
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-sm);
}

.map-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    color: var(--text-white);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-blue);
    transform: translateY(-2px);
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    max-width: 400px;
    z-index: 10000;
    animation: slideInRight 0.3s ease-out;
}

.notification-error {
    border-left: 4px solid var(--danger-red);
}

.notification-success {
    border-left: 4px solid var(--success-green);
}

.notification-info {
    border-left: 4px solid var(--info-cyan);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-muted);
    cursor: pointer;
    margin-left: auto;
}

.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Global Loading */
.global-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-backdrop {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.loading-content p {
    margin-top: 1rem;
    color: var(--text-secondary);
}

/* Install Button */
.install-btn {
    background: var(--success-green);
    color: var(--text-white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.install-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
}

/* Status Classes */
.status-good {
    color: var(--success-green);
    font-weight: 600;
}

.status-warning {
    color: var(--warning-orange);
    font-weight: 600;
}

.status-bad {
    color: var(--danger-red);
    font-weight: 600;
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .cities-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .city-card {
        padding: 1rem;
    }

    .city-temp {
        font-size: 2rem;
    }

    .search-container {
        order: 3;
        width: 100%;
        margin-top: 1rem;
    }

    .nav-controls {
        order: 2;
        gap: 0.5rem;
    }

    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .mobile-nav.active {
        display: flex;
    }
}





/* Előrejelzés stílusok */
.forecast-section {
    margin: 3rem 0;
}

.forecast-container {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.forecast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.forecast-day {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.forecast-day:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue);
}

.forecast-date {
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.forecast-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.forecast-temps {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.temp-max {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

.temp-min {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.forecast-condition {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.forecast-details {
    display: flex;
    justify-content: space-around;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.forecast-details span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

@media (max-width: 768px) {
    .forecast-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .forecast-day {
        padding: 1rem;
    }

    .forecast-icon {
        font-size: 2rem;
    }
}








/* ===== MODERN HEADER DESIGN ===== */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

/* ===== LOGO STÍLUSOK ===== */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.logo i {
    font-size: 2rem;
    background: linear-gradient(135deg, #ffd700, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* ===== KERESŐ STÍLUSOK ===== */
.search-container {
    flex: 1;
    max-width: 500px;
    margin: 0 2rem;
}

.search-wrapper {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    font-size: 1rem;
    color: #333;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.search-input:focus {
    outline: none;
    background: white;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.search-input::placeholder {
    color: #666;
    font-weight: 500;
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    font-size: 1.1rem;
    z-index: 3;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    margin-top: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    z-index: 1001;
}

/* ===== NAVIGÁCIÓS GOMBOK ===== */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-controls button {
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.nav-controls button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.nav-controls button:hover::before {
    left: 100%;
}

.nav-controls button:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.nav-controls button:active {
    transform: translateY(-1px);
}

/* Speciális gombok */
.theme-switcher {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1)) !important;
}

.ai-switcher {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24) !important;
    border-color: rgba(255, 107, 107, 0.3) !important;
}

.refresh-btn {
    background: linear-gradient(135deg, #00d2d3, #54a0ff) !important;
    border-color: rgba(0, 210, 211, 0.3) !important;
}

.refresh-btn:hover .fa-sync-alt {
    animation: spin 1s linear infinite;
}

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

/* ===== QUICK ACTIONS ===== */
.quick-actions {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.quick-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quick-action:hover::before {
    opacity: 1;
}

.quick-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.quick-action i {
    font-size: 1.1rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* ===== RESZPONZÍV DESIGN ===== */
@media (max-width: 1200px) {
    .header .container {
        gap: 1rem;
    }

    .search-container {
        margin: 0 1rem;
        max-width: 400px;
    }

    .nav-controls {
        gap: 0.5rem;
    }

    .nav-controls button {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0.75rem 0;
    }

    .header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .search-container {
        order: 2;
        margin: 0;
        width: 100%;
        max-width: none;
    }

    .nav-controls {
        order: 1;
        width: 100%;
        justify-content: space-around;
    }

    .nav-controls button {
        flex: 1;
        justify-content: center;
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }

    .nav-controls button span {
        display: none;
    }

    .quick-actions {
        padding: 1rem;
        gap: 0.5rem;
    }

    .quick-action {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .logo span {
        display: none;
    }

    .search-input {
        padding: 0.75rem 0.75rem 0.75rem 2.5rem;
        font-size: 0.9rem;
    }

    .search-icon {
        left: 1rem;
    }

    .quick-action span {
        display: none;
    }

    .quick-action {
        padding: 0.75rem;
        min-width: 50px;
        justify-content: center;
    }
}

/* ===== ANIMÁCIÓK ===== */
@keyframes headerFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    animation: headerFadeIn 0.6s ease-out;
}

/* ===== SÖTÉT TÉMA ===== */
[data-theme="dark"] .header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .search-input {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .search-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .quick-actions {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}




















/* Forecast kiegészítő stílusok */
.forecast-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-blue);
}

.forecast-header h3 {
    color: var(--primary-blue);
    margin: 0;
    font-size: 1.5rem;
}

.forecast-source {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.temp-separator {
    color: var(--text-muted);
    margin: 0 0.25rem;
}

.forecast-confidence {
    margin-top: 0.5rem;
    text-align: center;
}

.forecast-confidence small {
    color: var(--text-muted);
    font-size: 0.7rem;
}

.forecast-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--bg-secondary);
    text-align: center;
    color: var(--text-muted);
}

.forecast-day:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.forecast-details span {
    font-size: 0.75rem;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .forecast-grid {
        grid-template-columns: 1fr;
    }

    .forecast-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .forecast-details {
        flex-direction: column;
        gap: 0.25rem;
    }
}































        /* View Controls Stílusok */
        .view-controls {
            display: flex;
            gap: 1rem;
            margin: 2rem 0;
            justify-content: center;
            flex-wrap: wrap;
        }

        .view-btn {
            padding: 0.75rem 1.5rem;
            border: 2px solid var(--royal-blue, #4a90e2);
            background: transparent;
            color: var(--royal-blue, #4a90e2);
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .view-btn:hover {
            background: var(--royal-blue, #4a90e2);
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
        }

        .view-btn.active {
            background: var(--royal-blue, #4a90e2);
            color: white;
            box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
        }

        /* Weather Container Nézetek */
        .weather-container {
            display: grid;
            gap: 2rem;
            transition: all 0.5s ease;
        }

        /* Kártya nézet (alapértelmezett) */
        .weather-container.view-card {
            grid-template-columns: 1fr;
        }

        /* Lista nézet */
        .weather-container.view-list .weather-card {
            display: flex;
            align-items: center;
            padding: 1rem 2rem;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 12px;
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.3);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
        }

        .weather-container.view-list .weather-header {
            flex: 2;
            margin-right: 2rem;
        }

        .weather-container.view-list .weather-main {
            flex: 1;
            margin: 0 2rem;
            text-align: center;
        }

        .weather-container.view-list .weather-details {
            flex: 3;
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            gap: 1rem;
        }

        .weather-container.view-list .weather-actions,
        .weather-container.view-list .weather-sources {
            display: none;
        }

        /* Rács nézet */
        .weather-container.view-grid {
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        }

        .weather-container.view-grid .weather-card {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 16px;
            padding: 1.5rem;
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.3);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
        }

        .weather-container.view-grid .weather-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(74, 144, 226, 0.2);
        }

        /* Cities Grid Nézetek */
        .cities-grid {
            display: grid;
            gap: 1.5rem;
            transition: all 0.5s ease;
        }

        .cities-grid.view-card {
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        }

        .cities-grid.view-list {
            grid-template-columns: 1fr;
        }

        .cities-grid.view-list .city-card {
            display: flex;
            align-items: center;
            padding: 1rem 2rem;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 12px;
            backdrop-filter: blur(20px);
        }

        .cities-grid.view-list .city-header {
            flex: 2;
        }

        .cities-grid.view-list .city-weather {
            flex: 1;
            text-align: center;
        }

        .cities-grid.view-list .city-population {
            flex: 1;
            text-align: right;
        }

        .cities-grid.view-grid {
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        }

        /* Cookie Banner Stílusok */
        .cookie-banner {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(20px);
            border-top: 1px solid rgba(0, 0, 0, 0.1);
            padding: 1.5rem;
            z-index: 10000;
            transform: translateY(100%);
            transition: transform 0.3s ease;
            box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
        }

        .cookie-banner.show {
            transform: translateY(0);
        }

        .cookie-content {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            gap: 2rem;
            flex-wrap: wrap;
        }

        .cookie-text {
            flex: 1;
            min-width: 300px;
        }

        .cookie-text h4 {
            margin: 0 0 0.5rem 0;
            color: var(--royal-blue, #4a90e2);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .cookie-text p {
            margin: 0;
            color: #666;
            line-height: 1.5;
        }

        .cookie-buttons {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .cookie-buttons .btn {
            padding: 0.75rem 1.5rem;
            border-radius: 8px;
            font-weight: 600;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .cookie-buttons .btn-primary {
            background: var(--royal-blue, #4a90e2);
            color: white;
        }

        .cookie-buttons .btn-secondary {
            background: #6c757d;
            color: white;
        }

        .cookie-buttons .btn-outline {
            background: transparent;
            color: var(--royal-blue, #4a90e2);
            border: 2px solid var(--royal-blue, #4a90e2);
        }

        .cookie-buttons .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        }

        /* Reszponzív */
        @media (max-width: 768px) {
            .view-controls {
                gap: 0.5rem;
                margin: 1rem 0;
            }

            .view-btn {
                padding: 0.5rem 1rem;
                font-size: 0.9rem;
            }

            .weather-container.view-list .weather-card {
                flex-direction: column;
                text-align: center;
            }

            .weather-container.view-list .weather-header,
            .weather-container.view-list .weather-main {
                margin: 0 0 1rem 0;
            }

            .cities-grid.view-list .city-card {
                flex-direction: column;
                text-align: center;
            }

            .cookie-content {
                flex-direction: column;
                text-align: center;
                gap: 1rem;
            }

            .cookie-buttons {
                justify-content: center;
                width: 100%;
            }
        }

        /* Animációk */
        .weather-card, .city-card {
            animation: fadeInUp 0.6s ease-out;
        }

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

        /* Loading animation */
        .loading {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 3rem;
            text-align: center;
        }

        .spinner {
            width: 50px;
            height: 50px;
            border: 4px solid rgba(74, 144, 226, 0.3);
            border-top: 4px solid var(--royal-blue, #4a90e2);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-bottom: 1rem;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }








    /* Térkép specifikus stílusok hozzáadása */
.map-section {
    margin: 2rem 0;
    padding: 2rem 0;
}

.map-container {
    height: 600px;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-strong, 0 15px 35px rgba(0, 0, 0, 0.1));
    margin: var(--spacing-xl, 2rem) 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: var(--primary-gradient, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    position: relative;
    backdrop-filter: blur(10px);
    z-index: 1;
}

#weatherMap {
    height: 100% !important;
    width: 100% !important;
    border-radius: 20px;
    z-index: 2;
    position: relative;
}

/* Leaflet specifikus javítások */
.leaflet-container {
    height: 100% !important;
    width: 100% !important;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    background: transparent !important;
    border-radius: 20px !important;
    font-weight: 400 !important;
}

.leaflet-control-container {
    z-index: 1000 !important;
}

.leaflet-popup {
    z-index: 1001 !important;
}














/* AI Insights formázás */
.ai-insight-formatted .ai-main-insight {
    font-size: var(--text-base);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm);
    background: rgba(37, 99, 235, 0.1);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
}

.ai-insight-formatted .ai-details p {
    margin-bottom: var(--spacing-sm);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.ai-fallback {
    background: var(--bg-secondary);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.fallback-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    color: var(--accent-color);
    font-weight: 600;
}

.fallback-note {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-sm);
    font-size: var(--text-xs);
    color: var(--text-light);
    font-style: italic;
}

/* Generate button loading állapot */
.generate-ai-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}










/* ===== CHARTS SECTION STYLES ===== */

.charts-section {
    padding: var(--spacing-xxl, 4rem) 0;
    background: linear-gradient(135deg,
        rgba(102, 126, 234, 0.03) 0%,
        rgba(118, 75, 162, 0.03) 100%);
    position: relative;
    overflow: hidden;
}

.charts-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.charts-container {
    position: relative;
    z-index: 2;
}

/* Charts Header */
.charts-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-xl, 2rem);
    gap: var(--spacing-lg, 1.5rem);
    flex-wrap: wrap;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    background: var(--primary-gradient, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    color: var(--text-secondary, #6c757d);
    font-size: 1.1rem;
    margin: 0;
    font-weight: 400;
}

.gradient-icon {
    background: var(--primary-gradient, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Chart Controls */
.chart-controls {
    display: flex;
    gap: var(--spacing-lg, 1.5rem);
    align-items: center;
    flex-wrap: wrap;
}

.chart-tabs {
    display: flex;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.5rem;
    border-radius: 16px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-light, 0 4px 12px rgba(0, 0, 0, 0.05));
}

.chart-tab {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border: none;
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-primary, #2c3e50);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.chart-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.chart-tab:hover::before,
.chart-tab.active::before {
    opacity: 1;
}

.chart-tab:hover,
.chart-tab.active {
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium, 0 8px 25px rgba(102, 126, 234, 0.3));
}

.tab-icon {
    font-size: 1.2rem;
    min-width: 20px;
    text-align: center;
}

.tab-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tab-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
}

.tab-desc {
    font-size: 0.75rem;
    opacity: 0.8;
    line-height: 1;
}

.chart-library-controls {
    display: flex;
    gap: 0.5rem;
}

.chart-library-switch,
.chart-period-btn,
.chart-fullscreen-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 2px solid var(--royal-blue, #4a90e2);
    background: transparent;
    color: var(--royal-blue, #4a90e2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.chart-library-switch:hover,
.chart-period-btn:hover,
.chart-fullscreen-btn:hover {
    background: var(--royal-blue, #4a90e2);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium, 0 8px 25px rgba(74, 144, 226, 0.3));
}

/* Chart Stats Grid */
.chart-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg, 1.5rem);
    margin-bottom: var(--spacing-xl, 2rem);
}

.chart-stat-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-md, 1rem);
    padding: var(--spacing-lg, 1.5rem);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-light, 0 4px 12px rgba(0, 0, 0, 0.05));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.chart-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
}

.chart-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong, 0 15px 35px rgba(102, 126, 234, 0.2));
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--primary-gradient, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary, #2c3e50);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary, #6c757d);
    margin-bottom: 0.5rem;
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.stat-trend.up {
    color: var(--success-color, #28a745);
}

.stat-trend.down {
    color: var(--danger-color, #dc3545);
}

.stat-trend.neutral {
    color: var(--warning-color, #ffc107);
}

/* Main Chart Container */
.chart-main-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--spacing-xl, 2rem);
    margin-bottom: var(--spacing-xl, 2rem);
}

.chart-wrapper {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: var(--spacing-xl, 2rem);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-medium, 0 8px 25px rgba(0, 0, 0, 0.08));
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.chart-canvas-container,
.chart-apex-container {
    position: relative;
    height: 400px;
}

.chart-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
    pointer-events: none;
}

.chart-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary, #2c3e50);
    margin-bottom: 0.25rem;
}

.chart-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary, #6c757d);
}

.chart-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.chart-spinner {
    position: relative;
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.spinner-ring {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(102, 126, 234, 0.3);
    border-top: 4px solid var(--royal-blue, #4a90e2);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.chart-error {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.error-icon {
    font-size: 3rem;
    color: var(--danger-color, #dc3545);
    margin-bottom: 1rem;
}

/* Chart Info Panel */
.chart-info-panel {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: var(--spacing-lg, 1.5rem);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-light, 0 4px 12px rgba(0, 0, 0, 0.05));
    height: fit-content;
}

.info-section {
    margin-bottom: var(--spacing-lg, 1.5rem);
}

.info-section:last-child {
    margin-bottom: 0;
}

.info-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary, #2c3e50);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-content p {
    font-size: 0.9rem;
    color: var(--text-secondary, #6c757d);
    line-height: 1.6;
    margin: 0;
}

.chart-legend {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-primary, #2c3e50);
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    flex-shrink: 0;
}

/* Chart Export Section */
.chart-export-section {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: var(--spacing-lg, 1.5rem);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-light, 0 4px 12px rgba(0, 0, 0, 0.05));
}

.export-title h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary, #2c3e50);
    margin-bottom: var(--spacing-md, 1rem);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.export-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.export-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--royal-blue, #4a90e2);
    background: transparent;
    color: var(--royal-blue, #4a90e2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.export-btn:hover {
    background: var(--royal-blue, #4a90e2);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium, 0 8px 25px rgba(74, 144, 226, 0.3));
}

/* Responsive Design */
@media (max-width: 1024px) {
    .chart-main-container {
        grid-template-columns: 1fr;
    }

    .chart-info-panel {
        order: -1;
    }
}

@media (max-width: 768px) {
    .charts-header {
        flex-direction: column;
        align-items: stretch;
    }

    .chart-controls {
        justify-content: center;
    }

    .chart-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }

    .chart-tab {
        flex-direction: column;
        text-align: center;
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .tab-content {
        align-items: center;
    }

    .chart-stats-grid {
        grid-template-columns: 1fr;
    }

    .export-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .chart-wrapper {
        padding: var(--spacing-md, 1rem);
    }

    .chart-canvas-container,
    .chart-apex-container {
        height: 300px;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}

/* Dark theme support */
[data-theme="dark"] .chart-stat-card,
[data-theme="dark"] .chart-wrapper,
[data-theme="dark"] .chart-info-panel,
[data-theme="dark"] .chart-export-section {
    background: rgba(40, 44, 52, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .chart-tabs {
    background: rgba(40, 44, 52, 0.8);
}

[data-theme="dark"] .stat-value,
[data-theme="dark"] .chart-title,
[data-theme="dark"] .info-section h4,
[data-theme="dark"] .export-title h4 {
    color: var(--text-primary-dark, #ffffff);
}

[data-theme="dark"] .stat-label,
[data-theme="dark"] .chart-subtitle,
[data-theme="dark"] .info-content p {
    color: var(--text-secondary-dark, #a0a6b1);
}













/* Share Modal Styles */
.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.share-modal {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease;
}

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.share-modal-header h3 {
    margin: 0;
    color: var(--text-primary);
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: #f0f0f0;
    color: #666;
}

.share-input-group {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0 1.5rem 0;
}

.share-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    background: #f8f9fa;
}

.copy-btn {
    padding: 0.75rem 1.25rem;
    background: var(--royal-blue);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: var(--royal-blue-dark);
}

.copy-btn.copied {
    background: var(--success-color);
}

.share-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: all 0.2s ease;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: white;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Loading State Styles */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    min-height: 300px;
}

.loading-animation {
    margin-bottom: 2rem;
}

.spinner-large {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(102, 126, 234, 0.3);
    border-top: 4px solid var(--royal-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Dark theme support */
[data-theme="dark"] .share-modal {
    background: var(--dark-bg);
    color: var(--text-primary-dark);
}

[data-theme="dark"] .share-modal-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .share-input {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary-dark);
}











/* Weather Map Styles */
.weather-marker {
    border: none !important;
    background: transparent !important;
}

.weather-marker-content {
    border-radius: 50%;
    padding: 8px;
    text-align: center;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    font-size: 12px;
    font-weight: bold;
    color: white;
    min-width: 50px;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.weather-marker-content i {
    font-size: 16px;
    margin-bottom: 2px;
}

.temp-marker {
    font-size: 10px;
    font-weight: bold;
}

/* Popup Styles */
.weather-popup .leaflet-popup-content {
    margin: 0;
    padding: 0;
}

.weather-popup-content {
    padding: 15px;
    min-width: 250px;
}

.popup-header h3 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 16px;
}

.popup-header .county {
    color: #666;
    font-size: 12px;
}

.popup-weather {
    margin: 10px 0;
}

.weather-main {
    text-align: center;
    margin-bottom: 10px;
}

.weather-main .temperature {
    font-size: 24px;
    font-weight: bold;
    color: #2196F3;
}

.weather-main .description {
    font-size: 12px;
    color: #666;
}

.weather-details {
    display: flex;
    justify-content: space-around;
    margin: 10px 0;
}

.weather-details .detail {
    text-align: center;
    font-size: 12px;
}

.weather-details .detail i {
    display: block;
    margin-bottom: 5px;
    color: #2196F3;
}

.popup-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-primary {
    background: #2196F3;
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-sm:hover {
    opacity: 0.9;
}

/* Loading Indicator */
.map-loading-indicator {
    background: white;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.spinner-sm {
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-left: 2px solid #2196F3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Error Popup */
.error-popup .leaflet-popup-content-wrapper {
    background: #f44336;
    color: white;
}

.error-popup .leaflet-popup-tip {
    background: #f44336;
}

.error-content {
    padding: 10px;
    text-align: center;
}

.error-content i {
    margin-right: 8px;
}
