/* Activity Tab Filters Styles */
.bb-activity-tab-filters {
    margin: 0;
    padding: 0;
}
.bb-rl-screen-content .bb-rl-activity-filters-container {
    justify-content: flex-start;
    border-bottom: 0 !important;
    padding: 0;
    margin: 16px 0;
    gap: 0;
}
.bb-rl-screen-content .bb-rl-activity-filters-container .activity-head-bar{
        margin: 0;
}
.bb-activity-tabs {
    display: flex;
    background: transparent;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.bb-tab-item {
    flex: 1;
    padding: 16px 0 14px;
    background: transparent !important;
    border: 0 !important;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
    user-select: none;
}

.bb-tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #9EF66A;
}

.bb-tab-text {
    transition: color 0.3s ease;
        font-family: 'IBM Plex Sans';
    font-size: 15px;
    line-height: 140%;
    text-align: center;
    color: #959595;
        font-weight: 500;
}

.bb-tab-item.active .bb-tab-text{
    color: #F8F8FF;
        font-weight: 600;
}
.wc-bb-activity-tabs .bb-tab-item .bb-tab-text:hover {
    color: #F8F8FF;
}

/* Dark theme adjustments */
body.dark-theme .bb-tab-item {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-theme .bb-tab-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

body.dark-theme .bb-tab-item.active {
    background: rgba(0, 255, 0, 0.08);
    border-color: #00ff00;
}

/* Hide the original dropdown filter */
.bb-subnav-filters-container-main:not(.bb-activity-tab-filters) {
    display: none !important;
}

/* Additional styling for better integration */
.bb-subnav-filters-container-main.bb-activity-tab-filters .bb-subnav-filters-label {
    display: none;
}

/* Loading state */
.bb-icon-loader.animate-spin {
    display: inline-block;
    animation: spin 1s linear infinite;
}

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

/* Ensure proper z-index for tabs */
.bb-activity-tabs {
    position: relative;
    z-index: 10;
        gap: 16px;
}

/* Tab focus states for accessibility */
.bb-tab-item:focus {
    outline: 2px solid #00ff00;
    outline-offset: 2px;
}

/* Ensure tabs work well with BuddyBoss theme */
.buddypress .bb-activity-tab-filters {
    background: transparent;
    border: none;
    padding: 0;
}
