// Filter Ordering Styles
#filter-ordering-list {
    max-width: 600px;
}

.filter-item {
    cursor: move;
    user-select: none;
    transition: background-color 0.2s ease;

    &:hover {
        background-color: #f8f9fa;
    }

    &.ui-sortable-helper {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        border-color: #0d6efd;
    }
    &.ui-sortable-placeholder {
        visibility: visible !important;
        background-color: #e9ecef;
        border: 2px dashed #dee2e6;
    }

    .list-group-item {
        padding-left: 0.5rem;
    }
}

.filter-drag-handle {
    cursor: move;
    color: #6c757d;
    font-size: 1.2rem;
    margin-right: 0.5rem;
    display: inline-block;
    width: 20px;
    text-align: center;

    &:hover {
        color: #495057;
    }
}

.filter-label {
    font-weight: 500;
    flex-grow: 1;
    top: 5px;
    position: relative;
}

.filter-type-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    margin-right: 0.5rem;
}

.filter-visibility-toggle {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;

    .form-check-input {
        cursor: pointer;
        margin-top: 0;
        position: relative;
        margin-top: 5px;

        // Remove blue background on focus/checked
        &:focus {
            box-shadow: none;
            border-color: #dee2e6;
        }

        &:checked {
            background-color: #FFFFFF;
            border-color: #FFFFFF;
        }

        &:checked:focus {
            box-shadow: none;
            border-color: #FFFFFF;
        }
    }

    .form-check-label {
        cursor: pointer;
        user-select: none;
        margin-bottom: 0;
        padding-top: 0;
    }
}

// Toastr notification styles - ensure proper background colors
#toast-container > div {
    &.toast-success {
        background-color: #51A351 !important;
    }

    &.toast-error {
        background-color: #BD362F !important;
    }

    &.toast-info {
        background-color: #2F96B4 !important;
    }

    &.toast-warning {
        background-color: #F89406 !important;
    }
}
