.collapsible-section {
    margin-bottom: var(--spacing-lg);
}

.collapsible-section.collapsed {
    margin-bottom: 0.5rem;
}

.collapsible-section.collapsed .section-header {
    margin: 0.25rem 0 !important;
}

.collapsible-section:not(:first-child) .section-header {
    margin-top: 1rem !important;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: opacity 0.2s ease;
    border-radius: var(--border-radius);
    padding: 0.5rem;
}

.section-header:hover {
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.05);
}

.toggle-icon {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 0.8em;
    margin-right: 0.5rem;
}

.toggle-icon.collapsed {
    transform: rotate(-90deg);
}

.section-content {
    overflow: visible;
    max-height: none;
    opacity: 1;
}

.section-content.collapsed {
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.section-content .stats-grid,
.section-content .charts-grid,
.section-content .table-card {
    transition: opacity 0.3s ease;
}

.section-content.collapsed .stats-grid,
.section-content.collapsed .charts-grid,
.section-content.collapsed .table-card {
    opacity: 0;
}
