/*
 * EW Heat Map global stylesheet.
 *
 * NOTE: this used to live in Components/Pages/EWHeatMap.razor.css as a scoped
 * stylesheet. It was promoted to a global stylesheet because the Blazor
 * scoped-CSS bundle (obj/.../scopedcss/bundle/<assembly>.styles.css) was not
 * reliably ending up in the published image, which made the page render
 * un-styled in the deployed pod (most visibly: the map container collapsed to
 * 0px tall, so Leaflet rendered into an invisible div).
 *
 * Loaded via <link rel="stylesheet" href="css/ewheatmap.css" /> in App.razor.
 */

.ewheatmap-page {
    padding: 16px;
    width: 100%;
    max-width: none;
    margin: 0;
    flex: 1 1 auto;
    height: 100%;
    box-sizing: border-box;
    overflow: auto;
    display: flex;
    flex-direction: column;
}

.ewheatmap-header {
    margin-bottom: 16px;
}

    .ewheatmap-header h1 {
        display: flex;
        align-items: center;
        gap: 12px;
        margin: 0;
        font-size: 1.6rem;
        font-weight: 600;
        color: #1a1a1a;
    }

    .ewheatmap-header .subtitle {
        color: #555;
        margin: 8px 0 0 0;
        font-size: 14px;
        line-height: 1.55;
    }

    .ewheatmap-header code {
        background: #eef3f9;
        padding: 1px 6px;
        border-radius: 4px;
        font-size: 12.5px;
        color: #0652a4;
    }

.ewheatmap-controls {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
    padding: 14px 18px;
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 16px;
}

    .ewheatmap-controls .control-group {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .ewheatmap-controls label {
        font-size: 12px;
        font-weight: 600;
        color: #666;
    }

    .ewheatmap-controls input[type="datetime-local"] {
        padding: 6px 10px;
        border: 1px solid #ccc;
        border-radius: 4px;
        font-size: 14px;
        font-family: monospace;
        width: 220px;
    }

    .ewheatmap-controls .control-actions {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

.ewheatmap-checkbox-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.ewheatmap-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #1a1a1a;
    cursor: pointer;
    user-select: none;
}

    .ewheatmap-checkbox input[type="checkbox"] {
        accent-color: #0078d4;
    }

.ewheatmap-swatch {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15) inset;
}

.ewheatmap-msft {
    background: #0078d4;
}

.ewheatmap-severe {
    background: #dc3545;
}

.ewheatmap-summary {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.ewheatmap-stat {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 80px;
}

    .ewheatmap-stat .ewheatmap-stat-label {
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #888;
    }

    .ewheatmap-stat .ewheatmap-stat-value {
        font-size: 18px;
        font-weight: 600;
        color: #1a1a1a;
    }

.ewheatmap-map {
    flex: 1 1 auto;
    width: 100%;
    min-height: 480px;
    height: 100%;
    border: 1px solid #d6d6d6;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    background: #eef3f7;
    width: 100%;
    max-width: 1200px; /* Set your desired fixed width */
    height: 600px; /* Set your desired fixed height */
    margin: 0 auto;
    position: relative;
    touch-action: none; /* Disable pinch-to-zoom on touch devices */
    user-select: none; /* Prevent text selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

#ewheatmap-container {
    pointer-events: auto;
}

    /* If using Leaflet or similar mapping library, add these overrides */
    #ewheatmap-container * {
        box-sizing: border-box;
    }



/* ----- Improved filter / refresh controls ----- */

.ewheatmap-filter-row {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
    width: 100%;
}

.ewheatmap-controls .control-actions {
    margin-left: auto;
    align-items: flex-end;
    gap: 10px;
}

.ewheatmap-datetime {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-family: monospace;
    width: 200px;
    background: #fff;
    color: #1a1a1a;
}

    .ewheatmap-datetime:disabled {
        background: #f0f0f0;
        color: #888;
        cursor: not-allowed;
    }

/* Segmented time-range selector */
.ewheatmap-segmented {
    display: inline-flex;
    border: 1px solid #c6c6c6;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.ewheatmap-segmented-btn {
    appearance: none;
    background: transparent;
    border: none;
    border-right: 1px solid #e0e0e0;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    cursor: pointer;
    transition: background-color 120ms ease, color 120ms ease;
    min-width: 56px;
    line-height: 1.2;
}

    .ewheatmap-segmented-btn:last-child {
        border-right: none;
    }

    .ewheatmap-segmented-btn:hover {
        background: #f0f6fc;
    }

    .ewheatmap-segmented-btn.is-active {
        background: #0078d4;
        color: #fff;
    }

/* Chip-style toggles for localizations */
.ewheatmap-chip-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ewheatmap-chip {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 10px;
    border-radius: 999px;
    border: 1px solid #c6c6c6;
    background: #fff;
    color: #555;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, opacity 120ms ease;
    line-height: 1.3;
}

    .ewheatmap-chip:hover {
        border-color: #888;
        color: #1a1a1a;
    }

    .ewheatmap-chip:not(.is-on) .ewheatmap-swatch {
        opacity: 0.35;
    }

    .ewheatmap-chip.is-on {
        color: #1a1a1a;
        background: #eef6fc;
        border-color: #0078d4;
    }

    .ewheatmap-chip.ewheatmap-chip-severe.is-on {
        background: #fdecee;
        border-color: #dc3545;
    }

/* Refresh status (last refreshed / loading indicator) */
.ewheatmap-refresh-status {
    display: flex;
    align-items: center;
    min-height: 18px;
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.ewheatmap-refresh-loading {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0078d4;
    font-weight: 500;
}

.ewheatmap-refresh-time {
    cursor: help;
}

/* Inline validation message */
.ewheatmap-inline-warning {
    margin-top: 10px;
    padding: 6px 10px;
    background: #fff4ce;
    border: 1px solid #f0c419;
    border-radius: 4px;
    color: #6a4f00;
    font-size: 12px;
}

















/* Details panel below map */
.ewheatmap-details {
    margin-top: 24px;
    padding: 24px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ewheatmap-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
}

    .ewheatmap-details-header h2 {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 0;
        font-size: 20px;
        font-weight: 600;
    }

.ewheatmap-details-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    padding: 16px;
    background: #f5f5f5;
    border-radius: 4px;
}

.detail-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-stat-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.detail-stat-value {
    font-size: 18px;
    font-weight: 600;
    color: #0078d4;
}

.ewheatmap-details-events {
    margin-top: 16px;
}

    .ewheatmap-details-events h3 {
        margin: 0 0 16px 0;
        font-size: 16px;
        font-weight: 600;
    }

/* Tooltip styles */
.ewheatmap-tooltip {
    position: fixed;
    pointer-events: none;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 300px;
}

.tooltip-location {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.tooltip-count {
    font-size: 13px;
    color: #00d4ff;
    margin-bottom: 8px;
}

.tooltip-action {
    font-size: 12px;
    color: #0094bd;
    font-style: italic;
    font-weight: 500;
}

.ewheatmap-map {
    position: relative;
    background: white;
    border-radius: 8px;
    overflow-y: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Add these styles to the existing ewheatmap.css file */

/* ----- Leaflet tooltip wrapper ----- */
.ewheatmap-tooltip-wrapper {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

    .ewheatmap-tooltip-wrapper::before {
        display: none !important;
    }

/* Leaflet tooltip content styling */
.ewheatmap-tooltip {
    background: rgba(0, 0, 0, 0.92);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 320px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.ewheatmap-tooltip-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ewheatmap-tooltip-title {
    font-size: 15px;
    font-weight: 600;
    color: white;
    line-height: 1.3;
}

.ewheatmap-tooltip-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.4;
}

.ewheatmap-tooltip-action {
    margin-top: 8px;
    font-size: 11px;
    color: #4db8ff;
    font-style: italic;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Legend styling */
.ewheatmap-legend {
    background: white;
    padding: 12px 14px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
}

.ewheatmap-legend-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #555;
    margin-bottom: 8px;
}

.ewheatmap-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 13px;
    color: #1a1a1a;
}

    .ewheatmap-legend-item .ewheatmap-swatch {
        flex-shrink: 0;
    }

.ewheatmap-legend-note {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e8e8e8;
    font-size: 11px;
    color: #888;
    line-height: 1.4;
}

/* Details panel improvements */
.ewheatmap-details {
    margin-top: 24px;
    padding: 24px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ewheatmap-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e0e0e0;
}

    .ewheatmap-details-header h2 {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0;
        font-size: 20px;
        font-weight: 600;
        color: #1a1a1a;
    }

.ewheatmap-details-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.detail-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-stat-label {
    font-size: 11px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #0078d4;
}

.ewheatmap-details-events {
    margin-top: 20px;
}

    .ewheatmap-details-events h3 {
        margin: 0 0 16px 0;
        font-size: 16px;
        font-weight: 600;
        color: #1a1a1a;
    }

/* Add these new styles to your existing ewheatmap.css */

/* Events Grid Layout */
.ewheatmap-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

/* Event Card */
.ewheatmap-event-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

    .ewheatmap-event-card:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
        transform: translateY(-2px);
    }

/* Event Header */
.ewheatmap-event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
}

.ewheatmap-event-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .ewheatmap-event-badge.badge-msft {
        background: #cfe2ff;
        color: #0a58ca;
        border: 1px solid #9ec5fe;
    }

    .ewheatmap-event-badge.badge-severe {
        background: #f8d7da;
        color: #842029;
        border: 1px solid #f5c2c7;
    }

    .ewheatmap-event-badge.badge-unknown {
        background: #e9ecef;
        color: #495057;
        border: 1px solid #dee2e6;
    }

.ewheatmap-event-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

/* Event Body */
.ewheatmap-event-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ewheatmap-event-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ewheatmap-event-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: background-color 0.15s ease;
}

    .ewheatmap-event-row:hover {
        background: #e9ecef;
    }

    .ewheatmap-event-row.ewheatmap-event-full-width {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

.ewheatmap-event-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #495057;
    min-width: 140px;
}

.ewheatmap-event-value {
    font-size: 13px;
    color: #212529;
    font-weight: 500;
    text-align: right;
    word-break: break-word;
}

    .ewheatmap-event-value.ewheatmap-availability {
        font-weight: 700;
        color: #0078d4;
    }

/* Tags for Prefixes and VIPs */
.ewheatmap-event-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.ewheatmap-tag {
    display: inline-block;
    padding: 3px 10px;
    background: #e7f1ff;
    color: #004085;
    border: 1px solid #b3d7ff;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    font-family: 'Consolas', 'Monaco', monospace;
}

.ewheatmap-tag-more {
    display: inline-block;
    padding: 3px 10px;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffe69c;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    font-style: italic;
}

/* Event Footer */
.ewheatmap-event-footer {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    gap: 12px;
    flex-wrap: wrap;
}

.ewheatmap-event-timestamp {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #6c757d;
    font-family: 'Consolas', 'Monaco', monospace;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .ewheatmap-events-grid {
        grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    }
}

@media (max-width: 768px) {
    .ewheatmap-events-grid {
        grid-template-columns: 1fr;
    }

    .ewheatmap-event-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .ewheatmap-event-value {
        text-align: left;
    }
}

/* Updated details container to accommodate cards */
.ewheatmap-details {
    margin-top: 24px;
    margin-bottom: 24px;
    padding: 24px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ewheatmap-details-events h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.ewheatmap-tag-expand {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: var(--neutral-layer-2);
    border: 1px solid var(--neutral-stroke-1);
    border-radius: 4px;
    color: var(--accent-fill-rest);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .ewheatmap-tag-expand:hover {
        background: var(--neutral-layer-3);
        border-color: var(--accent-fill-rest);
    }

    .ewheatmap-tag-expand fluent-icon {
        font-size: 14px;
    }

.ewheatmap-event-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}


/* Add these styles to your existing ewheatmap.css file */

.ewheatmap-details-info {
    color: var(--neutral-foreground-hint);
    font-size: 14px;
}

/* Enhanced Country Tabs Styling */
.ewheatmap-country-tabs {
    margin: 20px 0;
    position: relative;
}

.ewheatmap-tabs-container {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 120, 212, 0.3) transparent;
    scroll-behavior: smooth;
}

    .ewheatmap-tabs-container::-webkit-scrollbar {
        height: 8px;
    }

    .ewheatmap-tabs-container::-webkit-scrollbar-track {
        background: #f5f5f5;
        border-radius: 4px;
    }

    .ewheatmap-tabs-container::-webkit-scrollbar-thumb {
        background: linear-gradient(90deg, #0078d4, #0094d4);
        border-radius: 4px;
        transition: background 0.3s ease;
    }

        .ewheatmap-tabs-container::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(90deg, #005a9e, #0078d4);
        }

.ewheatmap-country-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    color: #495057;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

    .ewheatmap-country-tab::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(0, 120, 212, 0.05), rgba(0, 148, 212, 0.05));
        border-radius: 8px;
        opacity: 0;
        transition: opacity 0.25s ease;
    }

    .ewheatmap-country-tab:hover {
        border-color: #0078d4;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 120, 212, 0.2);
    }

        .ewheatmap-country-tab:hover::before {
            opacity: 1;
        }

    .ewheatmap-country-tab.is-active {
        background: linear-gradient(135deg, #0078d4 0%, #0094d4 100%);
        color: #ffffff;
        border-color: #0078d4;
        box-shadow: 0 4px 16px rgba(0, 120, 212, 0.35);
        transform: translateY(-2px);
    }

        .ewheatmap-country-tab.is-active::before {
            opacity: 0;
        }

    .ewheatmap-country-tab .tab-country {
        font-weight: 700;
        letter-spacing: 0.3px;
        position: relative;
        z-index: 1;
    }

    .ewheatmap-country-tab .tab-count {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 28px;
        height: 24px;
        padding: 0 8px;
        background: #e9ecef;
        color: #495057;
        border-radius: 12px;
        font-size: 12px;
        font-weight: 700;
        transition: all 0.25s ease;
        position: relative;
        z-index: 1;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }

    .ewheatmap-country-tab.is-active .tab-count {
        background: rgba(255, 255, 255, 0.95);
        color: #0078d4;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
        font-weight: 800;
    }

    .ewheatmap-country-tab:hover .tab-count {
        transform: scale(1.05);
    }

    /* Add a flag emoji before country name (optional enhancement) */
    .ewheatmap-country-tab .tab-country::before {
        content: '🌍';
        margin-right: 6px;
        font-size: 16px;
        filter: grayscale(0.6);
        transition: filter 0.25s ease;
    }

    .ewheatmap-country-tab.is-active .tab-country::before {
        filter: grayscale(0);
    }

    /* Loading state for tabs */
    .ewheatmap-country-tab.is-loading {
        opacity: 0.6;
        cursor: wait;
    }

        .ewheatmap-country-tab.is-loading::after {
            content: '';
            position: absolute;
            top: 50%;
            right: 8px;
            width: 12px;
            height: 12px;
            margin-top: -6px;
            border: 2px solid #0078d4;
            border-top-color: transparent;
            border-radius: 50%;
            animation: tab-spinner 0.6s linear infinite;
        }

    @keyframes tab-spinner {
        to {
            transform: rotate(360deg);
        }
    }

    /* Scroll gradient hints */
    .ewheatmap-country-tabs::before,
    .ewheatmap-country-tabs::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 40px;
        pointer-events: none;
        z-index: 2;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .ewheatmap-country-tabs::before {
        left: 0;
        background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
    }

    .ewheatmap-country-tabs::after {
        right: 0;
        background: linear-gradient(to left, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
    }

    .ewheatmap-country-tabs.has-scroll-left::before,
    .ewheatmap-country-tabs.has-scroll-right::after {
        opacity: 1;
    }

    /* Responsive adjustments */
    @media (max-width: 1024px) {
        .ewheatmap-country-tab {
            padding: 10px 16px;
            font-size: 13px;
            gap: 8px;
        }

        .ewheatmap-tabs-container {
            gap: 6px;
        }

        .ewheatmap-country-tab .tab-count {
            min-width: 24px;
            height: 22px;
            font-size: 11px;
        }
    }

    @media (max-width: 768px) {
        .ewheatmap-country-tab {
            padding: 8px 12px;
            font-size: 12px;
        }

        .ewheatmap-tabs-container {
            gap: 4px;
            padding: 6px 2px;
        }

        .ewheatmap-country-tab .tab-country::before {
            font-size: 14px;
            margin-right: 4px;
        }
    }

    /* Dark mode support (if applicable) */
    @media (prefers-color-scheme: dark) {
        .ewheatmap-country-tab {
            background: #2d2d2d;
            border-color: #404040;
            color: #e0e0e0;
        }

            .ewheatmap-country-tab:hover {
                border-color: #4db8ff;
                box-shadow: 0 4px 12px rgba(77, 184, 255, 0.2);
            }

            .ewheatmap-country-tab.is-active {
                background: linear-gradient(135deg, #0078d4 0%, #4db8ff 100%);
                border-color: #4db8ff;
            }

            .ewheatmap-country-tab .tab-count {
                background: #404040;
                color: #e0e0e0;
            }

            .ewheatmap-country-tab.is-active .tab-count {
                background: rgba(255, 255, 255, 0.95);
                color: #0078d4;
            }
    }

    /* Responsive adjustments */
    @media (max-width: 768px) {
        .ewheatmap-country-tab {
            padding: 8px 12px;
            font-size: 13px;
        }

        .ewheatmap-tabs-container {
            gap: 2px;
        }
    }