/* Chart overlay styles */
.chart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 1070;
    overflow: auto;
}

.chart-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.chart-overlay-content {
    background: white;
    border-radius: 12px;
    padding: 20px;
    max-width: 90vw;
    max-height: 90vh;
    width: 90%;
    height: 90vh;
    overflow: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}



.overlay-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--brand-red);
    color: var(--bg-primary);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.overlay-close-btn:hover {
    background: var(--brand-red-hover);
    transform: scale(1.1);
}

.overlay-chart {
    width: 100% !important;
    height: calc(90vh - 120px) !important;
    min-height: 500px;
}

/* Add margin above the title only */
.chart-overlay-content > h1,
.chart-overlay-content > h2,
.chart-overlay-content > h3,
.chart-overlay-content > h4 {
    margin-top: 12px;
    margin-bottom: 0;
}

/* Expand button styles */
.expand-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;  /* Transparent background to match card */
    color: var(--brand-purple-dark);  /* Purple icon color */
    border: none;
    border-radius: 4px;
    padding: 8px 12px;  /* Increased padding for bigger button */
    cursor: pointer;
    font-size: 20px;  /* Increased font size for bigger icon */
    font-weight: bold;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: none;  /* Removed shadow since background is transparent */
}

.expand-btn:hover {
    background: transparent;  /* Keep background transparent on hover */
    transform: scale(1.15);  /* Increased scale effect */
    color: var(--brand-purple-hover);  /* Slightly darker purple on hover */
}

.expand-btn:active {
    transform: scale(0.95);
}

/* Ensure the metric card is positioned relative for absolute positioning of button */
.metric-card {
    position: relative;
} 