/**
 * BTD Macro Insights Charts - Frontend Styles
 */

/* Chart Container */
.btd-chart-container {
    position: relative;
    /* margin: 20px 0; */
    /* padding: 15px; */
    background: #ffffff;
    /* border: 1px solid #e0e0e0; */
    /* border-radius: 8px; */
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    /* margin: 20px 0; */
    background: #fff;
    /* border: 1px solid #e0e0e0; */
    /* border-radius: 9px; */
    overflow: hidden;
    /* padding: 0.8rem 1rem; */
    /* box-shadow: 1px 1px 12px rgb(0 0 0 / 14%); */
}

.btd-chart-container.dark-theme {
    background: #1e1e1e;
    border-color: #444444;
    color: #ffffff;
}

/* Chart Title */
.btd-chart-title {
    margin: 0 0 15px 0;
    padding: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1C1B1A;
    text-align: left;
    line-height: 1.4;
    margin: 0;
    /* padding: 15px 20px 10px; */
    font-size: 18px;
    font-weight: 600;
    /* border-bottom: 1px solid #f0f0f0; */
    margin-bottom: 0.2rem;
    font-family: 'Poppins', sans-serif;
}
h4.btd-chart-title {
    text-transform: uppercase;
    margin-top: 0.1rem;
    margin-bottom: 0.1rem;
    font-size: 1rem;
    font-weight: 700;
    text-align: left;
}
p.short-desc {
    position: relative;
    margin-left: 0.7rem;
    color: #555555;
    margin-top: -0.1rem;
    font-size: 0.8rem;
    font-style: italic;
    margin-bottom: 2rem;
}
.short-desc::before {
    position: absolute;
    content: '';
    display: block;
    z-index: 0;
    left: -0.5rem;
    top: 15%;
    height: 70%;
    margin-top: 0;
    width: 2px;
    border-radius: 10rem;
    background: rgb(208 0 188 / 50%);
}
.total_sector_spending {
    background: linear-gradient(90deg, #4813a8, #4329ce);
}
.btd-data-table {
    margin-block-end: 0px;
}
.btd-table-container {
    margin: 20px 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 9px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.total_sector_spending h3 {
    color: #fff;
    margin-top: 0;
    padding: 2rem;
    text-align: center;
    font-size: 1.4rem;
    margin-bottom: 0;
}
.dark-theme .btd-chart-title {
    color: #ffffff;
}

/* Chart Wrapper */
.btd-chart-wrapper {
    position: relative;
    /* width: 100%; */
    height: 100%;
    min-height: 300px;
    position: relative;
    width: 100%;
    height: 400px;
    padding: 1rem;
}
.btd-error-content { 
    color: #d32f2f; 
    text-align: center; 
    font-weight: bold; 
}
 @keyframes spin { 
    0% { transform: rotate(0deg); } 
    100% { transform: rotate(360deg); } 
}
/* Chart Canvas */
.btd-chart-canvas {
    display: block;
    width: 100%; 
    height: 100%;
}
.btd-loading-content { 
    text-align: center; 
}
/* Loading State */
.btd-chart-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    /* transform: translate(-50%, -50%); */
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666666;
    font-size: 14px;
    z-index: 10;
    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: 4;
}

.dark-theme .btd-chart-loading {
    color: #cccccc;
}

/* Spinner */
.btd-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #1976d2;
    border-radius: 50%;
    animation: btd-spin 1s linear infinite;

    border: 3px solid #f3f3f3; 
    border-top: 3px solid #3498db; 
    border-radius: 50%; 
    width: 30px; 
    height: 30px; 
    animation: spin 1s linear infinite; 
    margin: 0 auto 10px; 
}

.dark-theme .btd-spinner {
    border-color: #666666;
    border-top-color: #64b5f6;
}

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

/* Error State */
.btd-chart-error {
    position: absolute;
    /* top: 50%; */
    /* left: 50%; */
    /* transform: translate(-50%, -50%); */
    background: #ffebee;
    color: #c62828;
    padding: 15px 20px;
    border-radius: 4px;
    border: 1px solid #ffcdd2;
    font-size: 14px;
    text-align: center;
    z-index: 10;
    max-width: 80%;

    display: none; 
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background: rgba(255,255,255,0.95); 
    z-index: 1000; 
    align-items: center; 
    justify-content: center; 
}

.dark-theme .btd-chart-error {
    background: #2c1810;
    color: #ff8a80;
    border-color: #5d2f2f;
}

/* Chart Info */
.btd-chart-info {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.dark-theme .btd-chart-info {
    border-top-color: #444444;
}

.btd-chart-description {
    color: #666666;
    font-size: 12px;
    line-height: 1.4;
    font-style: italic;
}

.dark-theme .btd-chart-description {
    color: #cccccc;
}

/* Chart Type Specific Styles */
.btd-chart-total_consumer_spending,
.btd-chart-total_sector_spending {
    border-left: 4px solid #1976d2;
}

.btd-chart-demographic_spending_generation,
.btd-chart-demographic_spending_income,
.btd-chart-demographic_spending_region {
    border-left: 4px solid #388e3c;
}

.btd-chart-sector_demographic_spending_by_income,
.btd-chart-sector_demographic_spending_by_generation {
    border-left: 4px solid #f57c00;
}

.btd-chart-durable_nondurable_goods {
    border-left: 4px solid #7b1fa2;
}

.chart-grid {
    display: flex;
    gap: 1rem;
    flex-flow: column;
    justify-content: center;
    align-items: center;
}
.chart-card {
    flex: 1 0 auto;
    width: 100%;
}
.chart-card.minimized button.toggle-stretch svg.shrink {
    display: none;
}
.chart-card button.toggle-stretch svg.expand {
    display: none;
}
.chart-card.minimized button.toggle-stretch svg.expand {
    display: block;
}

.chart-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 1px 1px 12px rgb(0 0 0 / 11%);
    padding: 0.8rem 1rem;
    transition: box-shadow 0.3s ease;
    flex: 0 1 auto;
    width: 100%;
    position: relative;
    /* margin-top: 1rem; */
    transition: all 0.4s ease-in-out;
}
.btd-chart-container {
    position: relative;
}
.btd-chart-wrapper {
    position: relative;
    /* z-index: 0; */
}
/* .chart-card > p {
    max-width: 100%;
} */
.chart-card .unlock-data-wrapper,
.btd-chart-wrapper .unlock-data-wrapper {
    position: absolute;
    right: 2rem;
    width: 32%;
    height: auto;
    z-index: 0;
    bottom: 8.3rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-width: 8rem;
    transition: all 0.2s ease-in-out;
}
.chart-card .unlock-data-wrapper {
    top: 10rem;
}
.btd-chart-wrapper .unlock-data-wrapper {
    top: 3rem;
}
.chart-card .unlock-data-wrapper::before,
.btd-chart-wrapper .unlock-data-wrapper::before {
    content: '';
    display: block;
    position: absolute;
    right:0;
    left: -1rem;
    bottom: 0rem;
    top: -1rem;
    background: linear-gradient(90deg, rgb(255 255 255 / 20%) 0%, rgb(255 255 255 / 93%) 30%);
    z-index: -1;
    border-radius: 0.3rem;
    opacity: 1;
}
.chart-card .unlock-data-wrapper::after,
.btd-chart-wrapper .unlock-data-wrapper::after {
    content: '';
    display: block;
    position: absolute;
    right:0;
    left: 0;
    bottom: 0;
    top: 0;
    /* background: #fff; */
    z-index: -1;
    border-radius: 0.6rem;
    /* opacity: 0.6; */
    /* box-shadow: 0px 1px 13px -6px rgb(0 0 0 / 70%); */
    border-radius: 0.6rem;
    filter: blur(13px);
}



@media (min-width: 73.5em) {
    .chart-grid {
        flex-flow: row wrap;
    }
    .chart-card.limit-50 {
        flex: 1 0 calc(50% - 0.5rem);
        max-width: calc(50% - 0.5rem);
    }
    /* .chart-card.limit-50 {
        max-width: 49%;
    } */
}

/* TODO: this is copied in Brand Insights public.css */
.brand-insight-intro {
    padding: 1.2rem 1.4rem;
    background-color: #F9F6FC;
    margin-top: 0;
    margin-bottom: 0;
    border-radius: 6px;
    border: 1px solid #EDDEFC;
    margin-bottom: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .btd-chart-container {
        /* margin: 15px 0; */
        /* padding: 10px; */
    }
    
    .btd-chart-title {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .btd-chart-wrapper {
        min-height: 250px;
    }
    
    .btd-chart-description {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .btd-chart-container {
        /* margin: 10px 0; */
        padding: 8px;
    }
    
    .btd-chart-title {
        font-size: 14px;
    }
    
    .btd-chart-wrapper {
        min-height: 200px;
    }
}

/* Print Styles */
@media print {
    .btd-chart-container {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000000;
    }
    
    .btd-chart-loading,
    .btd-chart-error {
        display: none !important;
    }
}

/* High DPI/Retina Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .btd-chart-canvas {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: 'crisp-edges';
    }
}

/* Focus States for Accessibility */
.btd-chart-canvas:focus {
    outline: 2px solid #1976d2;
    outline-offset: 2px;
}

.dark-theme .btd-chart-canvas:focus {
    outline-color: #64b5f6;
}

/* Chart Controls (for future use) */
.btd-chart-controls {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btd-chart-control {
    padding: 5px 10px;
    font-size: 12px;
    border: 1px solid #e0e0e0;
    background: #ffffff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btd-chart-control:hover {
    background: #f5f5f5;
    border-color: #1976d2;
}

.btd-chart-control.active {
    background: #1976d2;
    color: #ffffff;
    border-color: #1976d2;
}

.dark-theme .btd-chart-control {
    background: #2c2c2c;
    border-color: #444444;
    color: #ffffff;
}

.dark-theme .btd-chart-control:hover {
    background: #404040;
    border-color: #64b5f6;
}

.dark-theme .btd-chart-control.active {
    background: #64b5f6;
    border-color: #64b5f6;
    color: #000000;
}


/* Add this to your existing charts.css file */

/* Export Progress Indicator */
.btd-export-progress {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin: 10px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    color: #666;
    position: relative;
    z-index: 1000;
}

.export-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #42acfa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Export Error Message */
.btd-export-error {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    margin: 10px 0;
    color: #dc2626;
    font-size: 14px;
    animation: slideIn 0.3s ease-out;
}

.error-icon {
    font-size: 16px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Export Button Styles */
.chart-export-hq-btn,
.chart-export-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #42acfa;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    margin: 0 4px;
}

.chart-export-hq-btn:hover,
.chart-export-pdf-btn:hover {
    background: #3b9ae6;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(66, 172, 250, 0.3);
}

.chart-export-pdf-btn {
    background: #ef4444;
}

.chart-export-pdf-btn:hover {
    background: #dc2626;
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

/* Chart Export Button */
.chart-export-btn {
    background: #fff;
    border: none;
    /* position: absolute; */
    top: 1rem;
    right: 3.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.2s ease-in-out;
    display: flex;
    border-radius: 6px;
    width: 2.2rem;
    height: 2.2rem;
    justify-content: center;
    align-items: center;
    border: 1px solid transparent;
    z-index: 9;
}

.chart-export-btn:hover {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chart-export-btn svg {
    width: 16px;
    height: 16px;
    color: #64748b;
}

/* .chart-export-btn:hover svg {
    color: #42acfa;
} */


/* Export Button Icons */
.chart-export-hq-btn::before {
    content: "HQ";
    font-size: 11px;
    font-weight: 600;
}

.chart-export-pdf-btn::before {
    content: "PDF";
    font-size: 11px;
    font-weight: 600;
}

/* Export Mode Styling (applied to cloned containers) */
.export-mode {
    background: white !important;
    box-shadow: none !important;
    border: 1px solid #e0e0e0 !important;
}

.export-mode .btd-chart-canvas {
    border-radius: 0 !important;
}

.export-mode .chart-title,
.export-mode .btd-chart-title {
    color: #1a1a1a !important;
    font-weight: 600 !important;
    margin-bottom: 12px !important;
}

.export-mode .chart-description,
.export-mode .btd-chart-description {
    color: #4a5568 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin-bottom: 16px !important;
}

.export-mode .chart-summary,
.export-mode .btd-chart-summary {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    padding: 12px !important;
    margin-top: 16px !important;
    color: #2d3748 !important;
    font-size: 13px !important;
}

/* Export Context Menu */
.btd-export-menu {
    position: fixed;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    min-width: 180px;
    z-index: 10000;
    font-size: 14px;
}

.btd-export-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    color: #374151;
}

.btd-export-menu-item:hover {
    background: #f3f4f6;
}

.btd-export-menu-item:active {
    background: #e5e7eb;
}

.btd-export-menu-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 4px 0;
}

/* Chart Container Enhancements for Export */
.chart-card,
.btd-chart-container {
    position: relative;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}
.chart-card > .btd-chart-container {
    box-shadow: none;
}
.chart-actions {
    position: absolute;
    /* Container for absolutely positioned buttons */
    right: 1rem;
}

/* Responsive Export Buttons */
@media (max-width: 768px) {
    .chart-export-hq-btn,
    .chart-export-pdf-btn {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .chart-export-hq-btn::before,
    .chart-export-pdf-btn::before {
        font-size: 12px;
    }
    
    .btd-export-progress {
        padding: 12px;
        font-size: 13px;
    }
    
    .export-spinner {
        width: 16px;
        height: 16px;
    }
}

/* Print Styles for Export */
@media print {
    .chart-export-hq-btn,
    .chart-export-pdf-btn,
    .chart-actions,
    .btd-export-progress,
    .btd-export-error {
        display: none !important;
    }
    
    .chart-card,
    .btd-chart-container {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* High DPI Display Optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .export-mode .btd-chart-canvas {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: "crisp-edges";
    }
}

/* Animation for Export Success */
.export-success {
    animation: exportSuccess 0.6s ease-out;
}

@keyframes exportSuccess {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* also exists in brand-insights css for stretch button */
.elementor-default button.chart-export-btn,
.chart-actions > .chart-actions-right > button {
    background: #fff;
    border: none;
    /* position: absolute; */
    top: 0rem;
    /* right: 0rem; */
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.2s ease-in-out;
    /* display: none; */
    border-radius: 6px;
    width: 2.2rem;
    height: 2.2rem;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease-in-out;
    border: 1px solid transparent;
    z-index: 9;
    display: flex;
    justify-content: center;
    align-items: center;
}
.elementor-default button.chart-export-btn:hover {transition: all 0.2s ease-in-out;background: #fbfafc;/* border: 1px solid #b189dbfa; *//* transform: scale(1.1); */}
.elementor-default button.chart-export-btn:active,
.elementor-default button.chart-export-btn:focus,
.chart-actions > .chart-actions-right > button:hover,
.chart-actions > .chart-actions-right > button:active,
.chart-actions > .chart-actions-right > button:focus {
    background:transparent;
    top:1px;
    transition: all 0.2s ease-in-out;
}
.elementor-default button.chart-export-btn svg,
.chart-actions > .chart-actions-right > button svg {
    height: 1rem;
    width: 1rem;
}
.elementor-default button.chart-export-btn svg path,
.chart-actions > .chart-actions-right > button svg path {
    fill: #111;
}
.elementor-default button.chart-export-btn:hover svg path,
.chart-actions > .chart-actions-right > button:hover svg path {
    fill:#6212b7;
}

/* Ensure both buttons align properly */
.chart-actions-right {
    /* display: flex; */
    /* align-items: center; */
}

.chart-export-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    /* width: 40px; */
    /* height: 40px; */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.chart-export-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.chart-export-btn svg {
    width: 20px;
    height: 20px;
    fill: #313131;
    transition: fill 0.2s ease;
}

/* Chart actions bar */
.chart-actions {
    /* display: flex; */
    align-items: center;
    justify-content: flex-end;
    /* padding: 12px; */
    /* background: #f8fafc; */
    /* border-bottom: 1px solid #e2e8f0; */
    /* gap: 8px; */
}

.chart-actions-left,
.chart-actions-right {
    display: flex;
    align-items: center;
    gap: 2px;
    justify-content: flex-end;
}

.locked .chart-actions .chart-export-btn,
.locked .chart-actions .chart-zoom-btn {
    display:none;
}

/* Lightbox Modal Styles */
.chart-lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.chart-lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.chart-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1;
}

.chart-lightbox-content-wrapper {
    position: relative;
    width: 95%;
    max-width: 1200px;
    max-height: 95vh;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    z-index: 2;
    overflow: auto;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
}

.chart-lightbox-modal.active .chart-lightbox-content-wrapper {
    transform: translateY(0) scale(1);
}

/* Lightbox close button inherits chart action styling */
.lightbox-chart .chart-lightbox-close {
    /* Inherits styling from chart action buttons */
}

.lightbox-chart .chart-lightbox-close svg {
    width: 20px;
    height: 20px;
    fill: #313131;
    transition: fill 0.2s ease;
}

.lightbox-chart .chart-lightbox-close:hover svg {
    fill: #42acfa;
}

.chart-lightbox-content {
    padding: 20px;
}

.chart-lightbox-content .chart-card {
    box-shadow: none;
    border-radius: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    width: 100%;
    max-width: none;
}

.chart-lightbox-content .btd-chart-wrapper {
    min-height: 500px;
    height: auto;
}

/* Prevent body scroll when lightbox is open */
body.lightbox-open {
    overflow: hidden;
}

/* Enhanced chart card in lightbox */
.lightbox-chart {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

.lightbox-chart .btd-chart-wrapper {
    height: 600px;
}

.lightbox-chart .chart-actions {
    position: absolute;
    top: 1px;
    right: 1px;
    display: flex;
    justify-content: flex-end;
    padding: 0;
    z-index: 2;
}

.lightbox-chart .chart-actions .chart-zoom-btn,
.lightbox-chart .chart-actions .toggle-stretch {
    display: none;
}

/* Responsive lightbox */
@media (max-width: 768px) {
    .chart-lightbox-content-wrapper {
        width: 98%;
        max-height: 98vh;
        margin: 1%;
    }
    
    .chart-lightbox-content {
        padding: 15px;
    }
    
    .lightbox-chart .btd-chart-wrapper {
        height: 400px !important;
        min-height: 300px !important;
    }
}

@media (max-width: 480px) {
    .chart-lightbox-close {
        width: 35px;
        height: 35px;
        font-size: 20px;
        top: 10px;
        right: 10px;
    }
    
    .chart-lightbox-content {
        padding: 10px;
    }
    
    .lightbox-chart .btd-chart-wrapper {
        height: 350px !important;
        min-height: 250px !important;
    }
}

/* Zoom button styles */
.chart-zoom-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.chart-zoom-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.chart-zoom-btn svg {
    width: 20px;
    height: 20px;
    fill: #313131;
    transition: fill 0.2s ease;
}

.chart-zoom-btn:hover svg {
    /* fill: #42acfa; */
}