.admin_page_ga-user-report .tab-content {
    padding: 0;
}

.ga4-dashboard-container {
    display: grid;
    gap: 20px;
}

.d-hide {
    display: none !important;
}

.ga-widget-date-select.d-hide {
    display: none !important;
}

.ga4-kpi-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.ga4-kpi-card {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ga4-chart {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.ga4-daterange {
    margin-bottom: 20px;
}


/* GA */

.date-select {
    margin: 10px 0;
}

.date-select select {
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.kpi-tab p {
    font-size: 16px;
}

.pie-legends-vertical {
    display: block;
    position: relative;
    max-width: 100%;
}

.pie-legends-vertical .pl-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    padding-top: 8px;
}

.pie-legends-vertical .pl-item:not(:last-child) {
    border-bottom: 1px solid #D9D9D9;
}

.pie-legends-vertical .pl-item .pl-item-initial:first-child {
    flex-grow: 1;
    max-width: 65%;
}

.pie-legends-vertical .pl-legend-name {
    position: relative;
    font-size: 14px;
    color: #5e5e5e;
    font-weight: 400;
    display: flex;
    align-items: center;
    padding-left: 30px;
    line-height: normal;
}

.pie-legends-vertical .pl-legend-name:before {
    content: "";
    left: 0;
    background: var(--legend-color);
    height: 10px;
    position: absolute;
    display: block;
    width: 22px;
    margin-top: -1px;
}

.pie-legends-vertical .pl-item-nums {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.pie-legends-vertical .pl-num-lg {
    font-weight: 800;
    font-size: 24px;
    color: #333;
    line-height: normal;
}

.card {
    margin-bottom: 20px;
}

.table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
}

.table th,
.table td {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
}

.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
}

.table tbody+tbody {
    border-top: 2px solid #dee2e6;
}


.elementor-kit-46 .layout_1 h2 {
    color: #000000 !important;
}

.nav-tab-wrapper {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
        overflow-x: auto;
            overflow-y: hidden;
}

a.nav-tab {
    padding: 10px 20px;
    margin-right: 5px;
    background: #f9f9f9;
    color: #333;
    text-decoration: none;
    border: 1px solid #ccc;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

a.nav-tab:hover {
    background: #eaeaea;
    color: #000;
}

a.nav-tab.nav-tab-active {
    background: #0dcaf0;
    color: #fff !important;
    border-color: #ccc;
    font-weight: 600;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
}

.custom-button {
    display: inline-block;
    padding: 8px 16px;
    margin-right: 0.5em;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid transparent;
    transition: background 0.2s ease, border 0.2s ease, color 0.2s ease;
    font-size: 14px;
}

.refresh-btn {
    background-color: #f0f8ff;
    color: #0073aa;
    border: 1px solid #0073aa;
}

.refresh-btn:hover {
    background-color: #0073aa;
    color: #fff;
}

.disconnect-btn {
    background-color: #fff5f5;
    color: #d63638;
    border: 1px solid #d63638;
}

.disconnect-btn:hover {
    background-color: #d63638;
    color: #fff;
}


/* .loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    font-size: 16px;
    color: #666;
} */

.loading-spinner:before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

.custom-tab-nav {
    display: flex;
    border-bottom: 2px solid #ddd;
    margin-bottom: 20px;
    gap: 10px;
}

.custom-tab-nav .nav-tabs {
    padding: 10px 18px;
    text-decoration: none;
    color: #555;
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    transition: all 0.3s ease;
    font-weight: 500;
}

.custom-tab-nav .nav-tabs:hover {
    background: #e9e9e9;
    color: #000;
}

.custom-tab-nav .nav-tabs-active {
    background: #fff;
    border-color: #ccc #ccc #fff;
    color: #0073aa;
    /* WordPress blue */
    font-weight: 600;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.05);
}

.ajax-loader.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.ajax-loader.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

.gsc-kpi-boxes {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    position: relative;
    gap: 10px;
}

.gsc-kpi {
    flex: 1;
    min-width: 150px;
    color: #000;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    margin-bottom: 10px;
}

.gsc-kpi input[type="checkbox"] {
    position: absolute;
    top: 10px;
    left: 10px;
}

.gsc-kpi-label {
    font-weight: bold;
}

.gsc-kpi-value {
    font-size: 24px;
    margin-top: 10px;
}

.gsc-kpi.blue:has(.gsc-toggle-dataset:checked + .gsc-kpi-content) {
    background: #4285F4;
    color: #fff;
}

.gsc-kpi.purple:has(.gsc-toggle-dataset:checked + .gsc-kpi-content) {
    background: #6f42c1;
    color: #fff;
}

.gsc-kpi.green:has(.gsc-toggle-dataset:checked + .gsc-kpi-content) {
    background: #28a745;
    color: #fff;
}

.gsc-kpi.orange:has(.gsc-toggle-dataset:checked + .gsc-kpi-content) {
    background: #fd7e14;
    color: #fff;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
}

.modern-table th,
.modern-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.modern-table th {
    font-weight: 600;
}

.nav-tab-wrapper {
    border-bottom: 1px solid #ccc;
    margin-bottom: 20px;
}

.nav-tab {
    padding: 10px 20px;
    border: 1px solid #ccc;
    border-bottom: none;
    background: #f1f1f1;
    margin-right: 5px;
    text-decoration: none;
    color: #555;
}

.nav-tab-active {
    background: #fff;
    border-bottom: 1px solid #fff;
    margin-bottom: -1px;
}

/* .export-dropdown {
    display: inline-block;
    position: relative;
} */

.export-select {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: white;
    cursor: pointer;
}

.range-select {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: white;
    cursor: pointer;
}

.export-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.export-btn {
    padding: 8px 15px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.export-btn:hover {
    background: #005a87;
}

/* New styles for loading states */
.gsc-kpi-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 8px;

}

.kpi-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 8px;
}

.full-page-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* gsc */
.comparison-kpi {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.current-period,
.comparison-period {
    padding: 15px;
    border-radius: 8px;
    background: #f8f9fa;
}

/* .current-period {
    border-left: 4px solid #007cba;
} */

.comparison-period {
    border-left: 4px solid #6c757d;
}

.period-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #495057;
}

.kpi-comparison {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 8px;
    background: white;
    border-radius: 4px;
    border-left: 3px solid transparent;
}

.kpi-comparison.positive {
    border-left-color: #28a745;
}

.kpi-comparison.negative {
    border-left-color: #dc3545;
}

.kpi-comparison.neutral {
    border-left-color: #6c757d;
}

.metric-name {
    font-weight: 500;
    color: #495057;
}

.metric-value {
    font-weight: 600;
}

.metric-diff {
    font-size: 12px;
    font-weight: 500;
}

.metric-diff.positive {
    color: #28a745;
}

.metric-diff.negative {
    color: #dc3545;
}

.comparison-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

.date-display {
    font-size: 14px;
    color: #6c757d;
}

.gsc-kpi-trend {
    font-size: 12px;
    margin-top: 5px;
    font-weight: 600;
    font-size: 12px;
    margin-top: 5px;
    font-weight: 600;
    /* display: flex; */
    justify-content: space-between;
    align-items: center;
    padding: 7px 12px;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    backdrop-filter: blur(5px);
    background-color: rgba(255, 255, 255, 0.4);
}

.gsc-kpi-trend.positive {
    color: #28a745;
}

.gsc-kpi-trend.negative {
    color: #dc3545;
}

.comparison-differences {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}


.compare-date-range {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #dee2e6;
}

.compare-period-label {
    font-weight: 600;
    color: #495057;
}

.date-range-fields {
    display: flex;
    gap: 2px;
    align-items: center;
}

/* Comparison Highlight Section Styles */
.comparison-highlight-section {
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.comparison-highlight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007cba;
}

.comparison-highlight-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.comparison-date-ranges {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #6c757d;
}

.date-range-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
}

.primary-date-badge {
    background: #007cba;
    color: white;
}

.comparison-date-badge {
    background: #6c757d;
    color: white;
}

.comparison-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.comparison-metric-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #007cba;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.comparison-metric-card.comparison {
    border-left-color: #6c757d;
}

.metric-card-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 10px;
}

.metric-name {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.metric-trend-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}

.trend-positive {
    background: #d4edda;
    color: #155724;
}

.trend-negative {
    background: #f8d7da;
    color: #721c24;
}

.trend-neutral {
    background: #e2e3e5;
    color: #383d41;
}

.metric-values {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.primary-value {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
}

.comparison-value {
    font-size: 14px;
    /* color: #000; */
    text-align: center;
}

.value-difference {
    font-size: 12px;
    font-weight: 600;
    margin-top: 5px;
}

.difference-positive {
    color: #28a745;
}

.difference-negative {
    color: #dc3545;
}

.difference-neutral {
    color: #6c757d;
}

.comparison-metric-card.highlight {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left-color: #ffc107;
}

/* Hide comparison section by default - will be shown via JavaScript when data is available */
#comparison-section {
    display: none;
}

/* Additional styles for comparison data display */
.comparison-date-display {
    font-size: 11px;
    /* color: #6c757d; */
    margin-top: 3px;
}

.comparison-value {
    font-size: 20px;
    font-weight: 600;
    margin-top: 10px;
}

.comparison-value.positive {
    /* color: #28a745; */
}

.comparison-value.negative {
    /* color: #dc3545; */
}

/* pintrest feed */
.pin-slider {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.pin-slider img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: none;
}

.pin-slider img:first-child {
    display: block;
}

.tab-pane.active .table-body.compare-active{
    max-height: 400px !important;
}