/* Dashboard Filter Bar Styling */
.dashboard-template .filter-bar {
    position: fixed;
    top: 150px; /* Initial position below header */
    left: 0;
    right: 0;
    height: 65px;
    background-color: #2c3e50;
    color: white;
    border-radius: 5px;
    width: 100%;
    z-index: 999; /* Below header but above content */
    will-change: top;
    -webkit-backface-visibility: hidden;
    margin-bottom: 0; /* Remove margin */
}
.dashboard-template .filter-bar-content {
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
    gap: 10px;
}

.dashboard-template .category-carousel {
    flex-grow: 0;
    flex-shrink: 1;
    overflow: hidden;
    overflow-x: auto;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    max-width: 80%;
}

.dashboard-template .category-carousel-inner {
    display: flex;
    transition: transform 0.3s ease;
    height: 100%;
}

/* Make sure existing category button styles apply */
.dashboard-template #reset-all-container {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* Add animation for chart filtering */
.dashboard-template .chart-cell {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dashboard-template .chart-cell.filtered-out {
    opacity: 0.3;
    transform: scale(0.95);
    pointer-events: none;
}

/* Add additional spacing for content below the fixed filter bar */
.dashboard-template #primary.content-area {
    padding-top: 65px; /* Match the height of the filter bar */
}

/* Transition effect for smoother movement */
/*.dashboard-template .filter-bar {
    transition: top 0.2s ease;
}*/