.filter-bar-section {
    background: #f1f3f4;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 76px;
    z-index: 100;
    transition: margin-left 0.3s ease;
    width: calc(100%);
}

.filter-bar-section.has-slide-menu {
    padding: 24px;
    width: calc(100%);
    transition: margin-left 0.3s ease, width 0.3s ease;
}

@media screen and (max-width: 1200px) {
    .filter-bar-section.has-slide-menu {
        margin-left: 24px;
        width: 100%;
    }
}

.filter-bar {
    padding: 0 16px;
}

/* Filter Dropdown Styles */
.filter-dropdown {
    position: relative;
}

.filter-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 200px;
}

.filter-dropdown-btn:hover {
    background: #f8f9fa;
    border-color: #5f6368;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.filter-dropdown-btn:active {
    background: #f1f3f4;
}

.filter-dropdown-btn .icon-18 {
    width: 18px;
    height: 18px;
    fill: #5f6368;
    flex-shrink: 0;
}

.filter-dropdown-btn .icon-16 {
    width: 16px;
    height: 16px;
    fill: #5f6368;
    flex-shrink: 0;
}

.filter-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
}

.filter-label {
    font-size: 11px;
    color: #5f6368;
    line-height: 1.2;
    white-space: nowrap;
}

.filter-value {
    font-size: 14px;
    color: #202124;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.chevron-icon {
    margin-left: auto;
}

/* Filter Alert */
.filter-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #fef7e0;
    border-radius: 4px;
}

.filter-alert .icon-18 {
    width: 18px;
    height: 18px;
    fill: #f9ab00;
    flex-shrink: 0;
}

.filter-alert-text {
    font-size: 14px;
    color: #202124;
}

/* Filter Pills */
.filter-pills-wrapper {
    padding: 0 16px;
    flex-wrap: wrap;
}

.filter-label-text {
    font-size: 14px;
    color: #5f6368;
    font-weight: 500;
}

.filter-pill {
    padding: 6px 12px;
    background: #e8f0fe;
    border: 1px solid #d2e3fc;
    border-radius: 16px;
    font-size: 13px;
    color: #1967d2;
}

.add-filter-btn {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 13px;
    color: #1967d2;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-filter-btn:hover {
    background: #f8f9fa;
    border-color: #1967d2;
}

.save-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: transparent;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 14px;
    color: #5f6368;
    cursor: pointer;
    transition: all 0.2s ease;
}

.save-btn:hover {
    background: #f8f9fa;
    border-color: #5f6368;
}

.save-btn .icon-18 {
    width: 18px;
    height: 18px;
    fill: #5f6368;
}

/* Modal Styles */
.filter-modal {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.filter-modal.active {
    display: block;
}

.filter-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.filter-modal-content {
    position: absolute;
    top: 49px;
    left: 15px;
    width: 380px;
    max-height: calc(100vh - 140px);
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.filter-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.filter-modal-title {
    font-size: 16px;
    font-weight: 500;
    color: #202124;
    margin: 0;
}

.filter-modal-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.filter-modal-close:hover {
    background: #f1f3f4;
}

.filter-modal-close .icon-20 {
    width: 20px;
    height: 20px;
    fill: #5f6368;
}

.filter-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
}

.filter-modal-body::-webkit-scrollbar {
    width: 6px;
}

.filter-modal-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.filter-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

/* View Section */
.view-section {
    padding: 8px 0;
}

.view-section + .view-section {
    border-top: 1px solid #e0e0e0;
    margin-top: 8px;
    padding-top: 16px;
}

.view-section-header {
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 500;
    color: #5f6368;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.view-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.view-item:hover {
    background: #f8f9fa;
}

.view-item.active {
    background: #e8f0fe;
}

.view-item .icon-20 {
    width: 20px;
    height: 20px;
    fill: #5f6368;
    flex-shrink: 0;
}

.view-item.active .icon-20 {
    fill: #1967d2;
}

.view-item span {
    font-size: 14px;
    color: #202124;
}

.view-item.active span {
    color: #1967d2;
    font-weight: 500;
}

/* Create View Button */
.create-view-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    color: #1967d2;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.create-view-btn:hover {
    background: #f8f9fa;
}

.create-view-btn .icon-18 {
    width: 18px;
    height: 18px;
    fill: #1967d2;
}

/* Modal Footer */
.filter-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 12px 20px;
    border-top: 1px solid #e0e0e0;
}

.filter-modal-footer.justify-content-between {
    justify-content: space-between;
}

.btn-feedback {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: transparent;
    border: none;
    color: #1967d2;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.btn-feedback:hover {
    background: #f8f9fa;
}

.btn-feedback .icon-18 {
    width: 18px;
    height: 18px;
    fill: #1967d2;
}

/* Modal Search */
.modal-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    margin-bottom: 12px;
}

.modal-search .icon-20 {
    width: 20px;
    height: 20px;
    fill: #5f6368;
}

.modal-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    color: #202124;
    background: transparent;
}

.modal-search-input::placeholder {
    color: #9aa0a6;
}

/* Campaign List */
.campaign-list {
    padding: 0 20px;
}

.campaign-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    cursor: pointer;
}

.campaign-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.campaign-item label {
    font-size: 14px;
    color: #202124;
    cursor: pointer;
    flex: 1;
}

/* Modal Buttons */
.btn-primary,
.btn-secondary {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background: #1967d2;
    color: #ffffff;
}

.btn-primary:hover {
    background: #1557b0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: transparent;
    color: #1967d2;
    border: 1px solid #dadce0;
}

.btn-secondary:hover {
    background: #f8f9fa;
    border-color: #1967d2;
}

/* Utility Classes */
.d-flex {
    display: flex;
}

.gap-2 {
    gap: 8px;
}

.ms-auto {
    margin-left: auto;
}

.icon-18 {
    width: 18px;
    height: 18px;
}

.icon-20 {
    width: 20px;
    height: 20px;
}

/* Responsive */
@media (max-width: 991px) {
    .filter-bar-section {
        margin-left: 0 !important;
        position: relative;
        top: 0;
        width: 100% !important;
    }
    
    .filter-bar-section.has-slide-menu {
        margin-left: 0 !important;
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    .filter-modal-content {
        left: 16px;
        right: 16px;
        width: auto;
        max-width: calc(100vw - 32px);
    }
    
    .filter-dropdown-btn {
        min-width: 150px;
        flex: 1;
        max-width: 200px;
    }
    
    .filter-alert-text {
        font-size: 12px;
    }

    .filter-bar {
        padding: 0 12px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .filter-pills-wrapper {
        padding: 0 12px;
        flex-wrap: wrap;
    }
    
    .filter-pill {
        font-size: 12px;
        padding: 4px 10px;
    }
}

@media (max-width: 576px) {
    .filter-bar-section {
        padding: 8px 0;
    }

    .filter-dropdown-btn {
        min-width: 120px;
        max-width: 150px;
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .filter-dropdown-btn .filter-text {
        min-width: 0;
    }
    
    .filter-dropdown-btn .filter-value {
        font-size: 12px;
    }
    
    .filter-dropdown-btn .filter-label {
        font-size: 10px;
    }

    .filter-alert {
        padding: 6px 8px;
        flex: 1;
        min-width: 0;
    }

    .filter-alert-text {
        display: none;
    }
    
    .filter-pills-wrapper {
        gap: 4px;
    }
    
    .filter-pill {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .add-filter-btn,
    .save-btn {
        font-size: 12px;
        padding: 4px 10px;
    }
}